summaryrefslogtreecommitdiffstats
path: root/sha1_file.c
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2009-02-12 03:32:37 +0100
committerJunio C Hamano <gitster@pobox.com>2009-02-12 03:32:37 +0100
commit7a134dbbc9ca7013c09b610351c5ce45dc10cda5 (patch)
tree911f77ae0affc4845c8a3fe5dc346b9f764e1bbe /sha1_file.c
parentMerge branch 'maint-1.5.6' into maint (diff)
parentMake repack less likely to corrupt repository (diff)
downloadgit-7a134dbbc9ca7013c09b610351c5ce45dc10cda5.tar.xz
git-7a134dbbc9ca7013c09b610351c5ce45dc10cda5.zip
Merge branch 'maint-1.6.0' into maint
* maint-1.6.0: Make repack less likely to corrupt repository fast-export: ensure we traverse commits in topological order Clear the delta base cache if a pack is rebuilt
Diffstat (limited to 'sha1_file.c')
-rw-r--r--sha1_file.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/sha1_file.c b/sha1_file.c
index d64f28f8ca..b63f842cbd 100644
--- a/sha1_file.c
+++ b/sha1_file.c
@@ -689,6 +689,7 @@ void free_pack_by_name(const char *pack_name)
while (*pp) {
p = *pp;
if (strcmp(pack_name, p->pack_name) == 0) {
+ clear_delta_base_cache();
close_pack_windows(p);
if (p->pack_fd != -1)
close(p->pack_fd);