Skip to content

Commit

Permalink
Merge pull request jedbrown#50 from demonyangyue/issue49
Browse files Browse the repository at this point in the history
resolves jedbrown#49 to make 'git fat pull' compatible with a sparse-checkout re...
  • Loading branch information
abraithwaite committed May 6, 2015
2 parents 0c3d359 + 616bb1a commit 40ee972
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions git_fat/git_fat.py
Original file line number Diff line number Diff line change
Expand Up @@ -618,6 +618,8 @@ def _orphan_files(self, patterns=None):
patterns = patterns or []
# Null-terminated for proper file name handling (spaces)
for fname in sub.check_output(['git', 'ls-files', '-z'] + patterns).split('\x00')[:-1]:
if not os.path.exists(fname):
continue
st = os.lstat(fname)
if st.st_size != self._magiclen or os.path.islink(fname):
continue
Expand Down

0 comments on commit 40ee972

Please sign in to comment.