From: Pavel Roskin Date: Wed, 5 Sep 2007 16:57:22 +0000 (-0400) Subject: git.__remotes_from_dir() should only return lists X-Git-Tag: v0.14.3~129 X-Git-Url: https://git.distorted.org.uk/~mdw/stgit/commitdiff_plain/5ae6fcce77a29221e15f6a4e8348bd4276960ba1 git.__remotes_from_dir() should only return lists If there are no remotes, return empty list, not None. The later doesn't work with builtin set(). This fixes t1001-branch-rename.sh Signed-off-by: Pavel Roskin --- diff --git a/stgit/git.py b/stgit/git.py index 4b4c626..f847cce 100644 --- a/stgit/git.py +++ b/stgit/git.py @@ -953,7 +953,7 @@ def __remotes_from_dir(dir): if os.path.exists(d): return os.listdir(d) else: - return None + return [] def remotes_list(): """Return the list of remotes in the repository