aboutsummaryrefslogtreecommitdiffstats
path: root/repository
diff options
context:
space:
mode:
authorMichael Muré <batolettre@gmail.com>2020-01-07 19:05:45 +0100
committerGitHub <noreply@github.com>2020-01-07 19:05:45 +0100
commitead3fdd07489c8945ecbd7de6675c4fd49c2877e (patch)
treeeb8f9567bcb621f45777f2b6de675956766285c9 /repository
parentca1d305308d4ee6d0fec16a0af10b62bb52cd265 (diff)
parentee48aef489c91a99b665ab1cd783e241611a3841 (diff)
downloadgit-bug-ead3fdd07489c8945ecbd7de6675c4fd49c2877e.tar.gz
Merge pull request #287 from MichaelMure/github-import-error
Github import error
Diffstat (limited to 'repository')
-rw-r--r--repository/config_git.go6
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]
}