diff options
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) } |