浏览代码

Merge Windows fix from Abderrahim.

Jelmer Vernooij 15 年之前
父节点
当前提交
1e9637ecf3
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1 0
      dulwich/object_store.py

+ 1 - 0
dulwich/object_store.py

@@ -288,6 +288,7 @@ class DiskObjectStore(BaseObjectStore):
         basename = os.path.join(self.pack_dir, 
             "pack-%s" % iter_sha1(entry[0] for entry in entries))
         write_pack_index_v2(basename+".idx", entries, p.get_stored_checksum())
+        p.close()
         os.rename(path, basename + ".pack")
         self._add_known_pack(basename)