Changeset 0553f7723be3…
Parent 5d774e512bee…
by
Changes to one file · Browse files at 0553f7723be3 Showing diff from parent 5d774e512bee Diff from another changeset...
@@ -471,8 +471,14 @@ f.seek(0)
write_pack_header(f, len(entries) + len(indexer.ext_refs()))
+ # Must flush before reading (http://bugs.python.org/issue3207)
+ f.flush()
+
# Rescan the rest of the pack, computing the SHA with the new header.
new_sha = compute_file_sha(f, end_ofs=-20)
+
+ # Must reposition before writing (http://bugs.python.org/issue3207)
+ f.seek(0, os.SEEK_CUR)
# Complete the pack.
for ext_sha in indexer.ext_refs():
|
Loading...