From 890c014d919f705eac624547031c79205a71321b Mon Sep 17 00:00:00 2001 From: Michael Muré Date: Sun, 28 Mar 2021 22:18:01 +0200 Subject: repo: fix various config issues around case insentivity --- repository/gogit_config.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'repository/gogit_config.go') diff --git a/repository/gogit_config.go b/repository/gogit_config.go index ba61adca..891e3ffb 100644 --- a/repository/gogit_config.go +++ b/repository/gogit_config.go @@ -134,7 +134,7 @@ func (cr *goGitConfigReader) ReadString(key string) (string, error) { } return section.Option(optionName), nil default: - subsectionName := strings.Join(split[1:len(split)-2], ".") + subsectionName := strings.Join(split[1:len(split)-1], ".") optionName := split[len(split)-1] if !section.HasSubsection(subsectionName) { return "", ErrNoConfigEntry -- cgit