From eb88f0e4463ea1aef5494314fa2a9607aaa262dd Mon Sep 17 00:00:00 2001 From: Michael Muré Date: Sun, 27 Sep 2020 20:31:09 +0200 Subject: repo: more config related bug fixes --- repository/gogit.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'repository/gogit.go') diff --git a/repository/gogit.go b/repository/gogit.go index f248235c..684f8a72 100644 --- a/repository/gogit.go +++ b/repository/gogit.go @@ -160,7 +160,7 @@ func InitBareGoGitRepo(path string) (*GoGitRepo, error) { // LocalConfig give access to the repository scoped configuration func (repo *GoGitRepo) LocalConfig() Config { - return newGoGitConfig(repo.r) + return newGoGitLocalConfig(repo.r) } // GlobalConfig give access to the global scoped configuration @@ -168,7 +168,7 @@ func (repo *GoGitRepo) GlobalConfig() Config { // TODO: replace that with go-git native implementation once it's supported // see: https://github.com/go-git/go-git // see: https://github.com/src-d/go-git/issues/760 - return newGitConfig(gitCli{repo.path}, true) + return newGoGitGlobalConfig(repo.r) } // AnyConfig give access to a merged local/global configuration -- cgit