diff options
author | Michael Muré <batolettre@gmail.com> | 2020-01-07 19:05:45 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-01-07 19:05:45 +0100 |
commit | ead3fdd07489c8945ecbd7de6675c4fd49c2877e (patch) | |
tree | eb8f9567bcb621f45777f2b6de675956766285c9 /repository/config_git.go | |
parent | ca1d305308d4ee6d0fec16a0af10b62bb52cd265 (diff) | |
parent | ee48aef489c91a99b665ab1cd783e241611a3841 (diff) | |
download | git-bug-ead3fdd07489c8945ecbd7de6675c4fd49c2877e.tar.gz |
Merge pull request #287 from MichaelMure/github-import-error
Github import error
Diffstat (limited to 'repository/config_git.go')
-rw-r--r-- | repository/config_git.go | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/repository/config_git.go b/repository/config_git.go index cff82afb..c4d222cf 100644 --- a/repository/config_git.go +++ b/repository/config_git.go @@ -66,11 +66,7 @@ func (gc *gitConfig) ReadAll(keyPrefix string) (map[string]string, error) { continue } - parts := strings.Fields(line) - if len(parts) != 2 { - return nil, fmt.Errorf("bad git config: %s", line) - } - + parts := strings.SplitN(line, " ", 2) result[parts[0]] = parts[1] } |