Skip to content

Commit

Permalink
Merge pull request #17 from PersonifyInc/long-fix-respecs-error
Browse files Browse the repository at this point in the history
Use '.' instead of '' to match any pathspec; needed by git >=2.16
  • Loading branch information
zelonght authored Jun 14, 2018
2 parents f72c97b + e04f14b commit 1a10cc8
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions git-fat
Original file line number Diff line number Diff line change
Expand Up @@ -512,6 +512,8 @@ class GitFat(object):

def orphan_files(self, patterns=[]):
'generator for all orphan placeholders in the working tree'
if not patterns or patterns == ['']:
patterns = ['.']
for fname in subprocess.check_output(['git', 'ls-files', '-z'] + patterns).split('\x00')[:-1]:
digest = self.decode_file(fname)[0]
if digest:
Expand Down

0 comments on commit 1a10cc8

Please sign in to comment.