mirror of
https://github.com/x-motemen/ghq.git
synced 2026-09-10 07:26:27 -04:00
Merge pull request #3 from Sixeight/patch/1
Fix never use default local repository root issue
This commit is contained in:
commit
8cf2d1c5a6
7
git.go
7
git.go
|
|
@ -17,7 +17,12 @@ func GitConfigAll(key string) ([]string, error) {
|
|||
return nil, err
|
||||
}
|
||||
|
||||
return strings.Split(value, "\000"), nil
|
||||
var values = strings.Split(value, "\000")
|
||||
if len(values) == 1 && values[0] == "" {
|
||||
values = values[:0]
|
||||
}
|
||||
|
||||
return values, nil
|
||||
}
|
||||
|
||||
func gitConfig(key string, all bool) (string, error) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue