aboutsummaryrefslogtreecommitdiff
path: root/sha1_file.c
diff options
context:
space:
mode:
authorNicolas Pitre <nico@cam.org>2008-08-22 15:45:53 -0400
committerJunio C Hamano <gitster@pobox.com>2008-08-22 22:00:22 -0700
commit4b480c6716a7d8e20e7e510827ea81e7939f335a (patch)
tree24c1de905aecbdebfd1c71485de456d0d6660c31 /sha1_file.c
parenta81892dd8c37b6f13793739721b520fee3ce4c2c (diff)
downloadgit-4b480c6716a7d8e20e7e510827ea81e7939f335a.tar.gz
git-4b480c6716a7d8e20e7e510827ea81e7939f335a.tar.xz
discard revindex data when pack list changes
This is needed to fix verify-pack -v with multiple pack arguments. Also, in theory, revindex data (if any) must be discarded whenever reprepare_packed_git() is called. In practice this is hard to trigger though. Signed-off-by: Nicolas Pitre <nico@cam.org> Signed-off-by: Junio C Hamano <gitster@pobox.com>
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 32e4664b1..477d3fb4b 100644
--- a/sha1_file.c
+++ b/sha1_file.c
@@ -990,6 +990,7 @@ void prepare_packed_git(void)
void reprepare_packed_git(void)
{
+ discard_revindex();
prepare_packed_git_run_once = 0;
prepare_packed_git();
}