Skip to content

Commit

Permalink
Use '.' instead of '' to match any pathspec; needed by git >=2.16
Browse files Browse the repository at this point in the history
  • Loading branch information
jedbrown authored and zelonght committed Jun 13, 2018
1 parent f72c97b commit e04f14b
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 e04f14b

Please sign in to comment.