From 3767f3a60c00d67af42c820a86958e98213b999b Mon Sep 17 00:00:00 2001 From: Jed Brown Date: Mon, 24 Dec 2012 16:13:28 -0600 Subject: Skip files matching magiclen that fail to decode (they are not managed by us) --- git-fat | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'git-fat') diff --git a/git-fat b/git-fat index 824f394..987780c 100755 --- a/git-fat +++ b/git-fat @@ -204,8 +204,11 @@ class GitFat(object): for line in p2.stdout: objhash, objtype, size = line.split() if objtype == 'blob' and int(size) in self.magiclens: - fathash = self.decode(subprocess.check_output(['git', 'cat-file', '-p', objhash]))[0] - referenced.add(fathash) + try: + fathash = self.decode(subprocess.check_output(['git', 'cat-file', '-p', objhash]))[0] + referenced.add(fathash) + except GitFat.DecodeError: + pass cut_thread.join() p1.wait() p2.wait() -- cgit v1.2.1