Dulwich.io dulwich / 9b25b13
Close pack before attempting to remove it. This is necessary on Windows. Jelmer Vernooń≥ 5 months ago
1 changed file(s) with 3 addition(s) and 2 deletion(s). Raw diff Collapse all Expand all
614614 os.remove(self._get_shafile_path(sha))
615615
616616 def _remove_pack(self, pack):
617 os.remove(pack.data.path)
618 os.remove(pack.index.path)
619617 try:
620618 del self._pack_cache[os.path.basename(pack._basename)]
621619 except KeyError:
622620 pass
621 pack.close()
622 os.remove(pack.data.path)
623 os.remove(pack.index.path)
623624
624625 def _get_pack_basepath(self, entries):
625626 suffix = iter_sha1(entry[0] for entry in entries)