diff options
author | Michael Contento <michaelcontento@gmail.com> | 2013-03-31 14:47:56 +0200 |
---|---|---|
committer | Michael Contento <michaelcontento@gmail.com> | 2013-04-28 20:49:45 +0200 |
commit | 4a5c6c9bb6d7cb08bee45e4303a6b18f76d5100b (patch) | |
tree | 74f93542af20c49b5573f4b0387b5e2359acfdbf | |
parent | c82c298d67a0385cdc2723ba4453c33fe2819fc3 (diff) | |
download | git-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!).
-rwxr-xr-x | git-fat | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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) |