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>
This commit is contained in:
parent
cb1dafdfda
commit
7960e70710
@ -638,6 +638,8 @@ def gitConfigList(key):
|
|||||||
if not _gitConfig.has_key(key):
|
if not _gitConfig.has_key(key):
|
||||||
s = read_pipe(["git", "config", "--get-all", key], ignore_error=True)
|
s = read_pipe(["git", "config", "--get-all", key], ignore_error=True)
|
||||||
_gitConfig[key] = s.strip().split(os.linesep)
|
_gitConfig[key] = s.strip().split(os.linesep)
|
||||||
|
if _gitConfig[key] == ['']:
|
||||||
|
_gitConfig[key] = []
|
||||||
return _gitConfig[key]
|
return _gitConfig[key]
|
||||||
|
|
||||||
def p4BranchesInGit(branchesAreInRemotes=True):
|
def p4BranchesInGit(branchesAreInRemotes=True):
|
||||||
|
Loading…
Reference in New Issue
Block a user