aboutsummaryrefslogtreecommitdiffstats
path: root/repository/gogit_config.go
diff options
context:
space:
mode:
authorMichael Muré <batolettre@gmail.com>2021-03-28 22:18:01 +0200
committerMichael Muré <batolettre@gmail.com>2021-03-28 22:18:01 +0200
commit890c014d919f705eac624547031c79205a71321b (patch)
tree062d022679c941cd7eabb40f5b22a3da35efd8af /repository/gogit_config.go
parentfb6b2d873e1bbc653aa84ddce56c842202e00c33 (diff)
downloadgit-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.go2
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