Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
Fix GIT_CEILING_DIRECTORIES on Windows
[gitweb.git]
/
builtin-pack-objects.c
diff --git
a/builtin-pack-objects.c
b/builtin-pack-objects.c
index 4411a480c1067f6841181e838ffba54edbec823f..fb5e14d56e5b9fec0a054eb9708be41a59ac0f13 100644
(file)
--- a/
builtin-pack-objects.c
+++ b/
builtin-pack-objects.c
@@
-520,6
+520,7
@@
static void write_pack_file(void)
snprintf(tmpname, sizeof(tmpname), "%s-%s.pack",
base_name, sha1_to_hex(sha1));
+ free_pack_by_name(tmpname);
if (adjust_perm(pack_tmp_name, mode))
die("unable to make temporary pack file readable: %s",
strerror(errno));