chiark
/
gitweb
/
~mdw
/
stgit
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8c0c72c
)
git.__remotes_from_dir() should only return lists
author
Pavel Roskin
<proski@gnu.org>
Wed, 5 Sep 2007 16:57:22 +0000
(12:57 -0400)
committer
Catalin Marinas
<catalin.marinas@gmail.com>
Wed, 5 Sep 2007 21:21:03 +0000
(22:21 +0100)
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 <proski@gnu.org>
stgit/git.py
patch
|
blob
|
blame
|
history
diff --git
a/stgit/git.py
b/stgit/git.py
index 4b4c6268197412b5be69543586306ed7d1b595fd..f847cceda444ca9c2098ca1f732c2f4b4c8a0164 100644
(file)
--- 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