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>
"""Check out the given or all files
"""
if not files:
"""Check out the given or all files
"""
if not files:
if tree_id and __run('git-read-tree -m', [tree_id]) != 0:
raise GitException, 'Failed git-read-tree -m %s' % tree_id
if tree_id and __run('git-read-tree -m', [tree_id]) != 0:
raise GitException, 'Failed git-read-tree -m %s' % tree_id