summaryrefslogtreecommitdiff
path: root/git-fat
diff options
context:
space:
mode:
authorMichael Contento <michaelcontento@gmail.com>2013-03-31 14:47:56 +0200
committerMichael Contento <michaelcontento@gmail.com>2013-04-28 20:49:45 +0200
commit4a5c6c9bb6d7cb08bee45e4303a6b18f76d5100b (patch)
tree74f93542af20c49b5573f4b0387b5e2359acfdbf /git-fat
parentc82c298d67a0385cdc2723ba4453c33fe2819fc3 (diff)
downloadgit-fat-4a5c6c9bb6d7cb08bee45e4303a6b18f76d5100b.tar.gz
fix "git fat pull" for fancy named files
just add "-z" to "git ls-files" and split the string at the null byte instead of newline. now we get the original name back from git and the os module should handle the communication with the filesystem (but I haven't checked this!).
Diffstat (limited to 'git-fat')
-rwxr-xr-xgit-fat2
1 files changed, 1 insertions, 1 deletions
diff --git a/git-fat b/git-fat
index 7bceec1..3a6afb1 100755
--- a/git-fat
+++ b/git-fat
@@ -265,7 +265,7 @@ class GitFat(object):
def orphan_files(self, patterns=[]):
'generator for all orphan placeholders in the working tree'
- for fname in subprocess.check_output(['git', 'ls-files'] + patterns).splitlines():
+ for fname in subprocess.check_output(['git', 'ls-files', '-z'] + patterns).split("\x00")[:-1]:
digest = self.decode_file(fname)[0]
if digest:
yield (digest, fname)