diff options
author | Michael Muré <batolettre@gmail.com> | 2021-03-28 22:18:01 +0200 |
---|---|---|
committer | Michael Muré <batolettre@gmail.com> | 2021-03-28 22:18:01 +0200 |
commit | 890c014d919f705eac624547031c79205a71321b (patch) | |
tree | 062d022679c941cd7eabb40f5b22a3da35efd8af /repository/gogit_config.go | |
parent | fb6b2d873e1bbc653aa84ddce56c842202e00c33 (diff) | |
download | git-bug-890c014d919f705eac624547031c79205a71321b.tar.gz |
repo: fix various config issues around case insentivity
Diffstat (limited to 'repository/gogit_config.go')
-rw-r--r-- | repository/gogit_config.go | 2 |
1 files changed, 1 insertions, 1 deletions
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 |