summaryrefslogtreecommitdiff
path: root/git-p4.py
diff options
context:
space:
mode:
authorLars Schneider <larsxschneider@gmail.com>2015-09-26 09:55:00 +0200
committerJunio C Hamano <gitster@pobox.com>2015-10-03 10:21:13 -0700
commit7960e70710a97b4d650531614b2839a907f79d95 (patch)
treeac9f6711b50748c42568adcea02d4d701d0dad10 /git-p4.py
parentcb1dafdfdadca4d1bbe4147d2f9c72b5ef0f4ab7 (diff)
downloadgit-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-xgit-p4.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/git-p4.py b/git-p4.py
index c99b077884..ae1e9ea52e 100755
--- a/git-p4.py
+++ b/git-p4.py
@@ -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):