Skip to content

Commit

Permalink
resolves jedbrown#49 to make 'git fat pull' compatible with a sparse-…
Browse files Browse the repository at this point in the history
…checkout repository
  • Loading branch information
yuyang committed Apr 27, 2015
1 parent 0c3d359 commit 616bb1a
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 616bb1a

Please sign in to comment.