diff options
author | Michael Muré <batolettre@gmail.com> | 2019-11-01 22:16:57 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-11-01 22:16:57 +0000 |
commit | f5193cc76dd1a1c1bb55194a64ef90bae2278115 (patch) | |
tree | 74c5f184df4fb27bec0d6f809ce9816ec133d80f /repository/git_testing.go | |
parent | 11b4a1beb7e1ab8809515a5ce21e8708fba7f300 (diff) | |
parent | f9f82957a78ea0d3cacddbc6914ce98b94ddf7bd (diff) | |
download | git-bug-f5193cc76dd1a1c1bb55194a64ef90bae2278115.tar.gz |
Merge pull request #240 from MichaelMure/repo-config
repository config interface and implementation rework
Diffstat (limited to 'repository/git_testing.go')
-rw-r--r-- | repository/git_testing.go | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/repository/git_testing.go b/repository/git_testing.go index 36c53c1d..37a15d93 100644 --- a/repository/git_testing.go +++ b/repository/git_testing.go @@ -31,10 +31,11 @@ func CreateTestRepo(bare bool) *GitRepo { log.Fatal(err) } - if err := repo.StoreConfig("user.name", "testuser"); err != nil { + config := repo.LocalConfig() + if err := config.StoreString("user.name", "testuser"); err != nil { log.Fatal("failed to set user.name for test repository: ", err) } - if err := repo.StoreConfig("user.email", "testuser@example.com"); err != nil { + if err := config.StoreString("user.email", "testuser@example.com"); err != nil { log.Fatal("failed to set user.email for test repository: ", err) } |