Browse Source

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>
maint
Lars Schneider 10 years ago committed by Junio C Hamano
parent
commit
7960e70710
  1. 2
      git-p4.py

2
git-p4.py

@ -638,6 +638,8 @@ def gitConfigList(key): @@ -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):

Loading…
Cancel
Save