diff options
author | Lars Schneider <larsxschneider@gmail.com> | 2015-09-26 09:55:00 +0200 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2015-10-03 10:21:13 -0700 |
commit | 7960e70710a97b4d650531614b2839a907f79d95 (patch) | |
tree | ac9f6711b50748c42568adcea02d4d701d0dad10 /git-p4.py | |
parent | cb1dafdfdadca4d1bbe4147d2f9c72b5ef0f4ab7 (diff) | |
download | git-7960e70710a97b4d650531614b2839a907f79d95.tar.gz |
git-p4: return an empty list if a list config has no values
Signed-off-by: Lars Schneider <larsxschneider@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'git-p4.py')
-rwxr-xr-x | git-p4.py | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -638,6 +638,8 @@ def gitConfigList(key): if not _gitConfig.has_key(key): s = read_pipe(["git", "config", "--get-all", key], ignore_error=True) _gitConfig[key] = s.strip().split(os.linesep) + if _gitConfig[key] == ['']: + _gitConfig[key] = [] return _gitConfig[key] def p4BranchesInGit(branchesAreInRemotes=True): |