From: larsxschneider@gmail.com Date: Wed, 09 Sep 2015 11:59:08 GMT Subject: [PATCH v4 3/5] git-p4: return an empty list if a list config has no values Message-ID: <1441799950-54633-4-git-send-email-larsxschneider@gmail.com> In-Reply-To: <1441799950-54633-1-git-send-email-larsxschneider@gmail.com> From: Lars Schneider Signed-off-by: Lars Schneider --- git-p4.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/git-p4.py b/git-p4.py index 40ad4ae..90d3b90 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): -- 2.5.1