Changeset 474da97808a8…
Parent ac350b129d99…
by
Changes to one file · Browse files at 474da97808a8 Showing diff from parent ac350b129d99 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...