From 4a5c6c9bb6d7cb08bee45e4303a6b18f76d5100b Mon Sep 17 00:00:00 2001 From: Michael Contento Date: Sun, 31 Mar 2013 14:47:56 +0200 Subject: 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!). --- git-fat | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'git-fat') 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) -- cgit v1.2.1