diff options
author | Jed Brown <jed@59A2.org> | 2012-12-24 16:13:28 -0600 |
---|---|---|
committer | Jed Brown <jed@59A2.org> | 2012-12-24 16:13:28 -0600 |
commit | 3767f3a60c00d67af42c820a86958e98213b999b (patch) | |
tree | 09a43984fdf1cd346af4f912b997eedc59ba9dbe /git-fat | |
parent | e8aa02c259b9cd22768d17f2307d0212118d59d8 (diff) | |
download | git-fat-3767f3a60c00d67af42c820a86958e98213b999b.tar.gz |
Skip files matching magiclen that fail to decode (they are not managed by us)
Diffstat (limited to 'git-fat')
-rwxr-xr-x | git-fat | 7 |
1 files changed, 5 insertions, 2 deletions
@@ -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() |