From: Catalin Marinas Date: Fri, 4 Nov 2005 10:27:22 +0000 (+0000) Subject: Fix the 'files' initialisation in git.checkout() X-Git-Tag: v0.8~38 X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~mdw/git/stgit/commitdiff_plain/97310762059f05961ddac8d6a2e7be1ceeb6f349 Fix the 'files' initialisation in git.checkout() 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 --- diff --git a/stgit/git.py b/stgit/git.py index 413604c..b6e47c3 100644 --- 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