summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJed Brown <jed@59A2.org>2013-03-27 17:32:54 -0500
committerJed Brown <jed@59A2.org>2013-03-27 17:33:53 -0500
commit62e7fae0f8168521dfe0bebb69cdbe4d2aa5efca (patch)
tree80c1dea3a0a904121436309cc57411c4f6949771
parenteadb17bc73f7306fc008aa17ae41276ebbfcc495 (diff)
downloadgit-fat-62e7fae0f8168521dfe0bebb69cdbe4d2aa5efca.tar.gz
Fix reading lines from 'git ls-files -s'
Reverts mistake from 62932e0f74102d3c65a0e3e6e2de3673e64741d8
-rwxr-xr-xgit-fat2
1 files changed, 1 insertions, 1 deletions
diff --git a/git-fat b/git-fat
index 23efa2a..8b3a82a 100755
--- a/git-fat
+++ b/git-fat
@@ -436,7 +436,7 @@ class GitFat(object):
filelist = set(f.strip() for f in open(args[0]).readlines())
lsfiles = subprocess.Popen(['git', 'ls-files', '-s'], stdout=subprocess.PIPE)
updateindex = subprocess.Popen(['git', 'update-index', '--index-info'], stdin=subprocess.PIPE)
- for line in lsfiles.stdout.read():
+ for line in lsfiles.stdout:
mode, sep, tail = line.partition(b' ')
blobhash, sep, tail = tail.partition(b' ')
stageno, sep, tail = tail.partition(b'\t')