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:
9216b60
)
Fix the 'files' initialisation in git.checkout()
author
Catalin Marinas
<catalin.marinas@gmail.com>
Fri, 4 Nov 2005 10:27:22 +0000
(10:27 +0000)
committer
Catalin Marinas
<catalin.marinas@gmail.com>
Fri, 4 Nov 2005 10:27:22 +0000
(10:27 +0000)
The 'files' variable should have been initialised to an empty list, not
None. Thanks to Kai Ruemmler for spotting it.
Signed-off-by: Catalin Marinas <catalin.marinas@gmail.com>
stgit/git.py
patch
|
blob
|
blame
|
history
diff --git
a/stgit/git.py
b/stgit/git.py
index 413604c0d05b977eb1a86a79c9d2c2d4658fc683..b6e47c3f95a781f6a56b81d5872bfe60c549f6c6 100644
(file)
--- a/
stgit/git.py
+++ b/
stgit/git.py
@@
-569,7
+569,7
@@
def checkout(files = None, tree_id = None, force = False):
"""Check out the given or all files
"""
if not files:
- files =
None
+ files =
[]
if tree_id and __run('git-read-tree -m', [tree_id]) != 0:
raise GitException, 'Failed git-read-tree -m %s' % tree_id