diff --git a/sha1_file.c b/sha1_file.c
index 7459a9cd825907ba0ef48e06e4f46b5c14e1a8ff..032300c4c6434701e802df729cd74245e543de20 100644 (file)
--- a/sha1_file.c
+++ b/sha1_file.c
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);
if (p->pack_fd == -1 && open_packed_git(p))
die("packfile %s cannot be accessed", p->pack_name);
- /* Since packfiles end in a hash of their content and its
+ /* Since packfiles end in a hash of their content and it's
* pointless to ask for an offset into the middle of that
* hash, and the in_window function above wouldn't match
* don't allow an offset too close to the end of the file.