Skip to content

Commit 7960e70

Browse files
larsxschneidergitster
authored andcommitted
git-p4: return an empty list if a list config has no values
Signed-off-by: Lars Schneider <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent cb1dafd commit 7960e70

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

git-p4.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -638,6 +638,8 @@ def gitConfigList(key):
638638
if not _gitConfig.has_key(key):
639639
s = read_pipe(["git", "config", "--get-all", key], ignore_error=True)
640640
_gitConfig[key] = s.strip().split(os.linesep)
641+
if _gitConfig[key] == ['']:
642+
_gitConfig[key] = []
641643
return _gitConfig[key]
642644

643645
def p4BranchesInGit(branchesAreInRemotes=True):

0 commit comments

Comments
 (0)