aboutsummaryrefslogtreecommitdiff
path: root/refs.c
diff options
context:
space:
mode:
authorJunio C Hamano <junkio@cox.net>2007-01-04 22:28:21 -0800
committerJunio C Hamano <junkio@cox.net>2007-01-04 22:28:21 -0800
commite27e609bbf81271318d99f2643f378f3fde6c6c6 (patch)
tree331a4d351a1a310a131ae28f71f6d5fa3486224e /refs.c
parentd222984e3610c1558778f7a23d23b89f1d91fb36 (diff)
parent8977c110b5bbd230c28c727ddb85856067d55cfb (diff)
downloadgit-e27e609bbf81271318d99f2643f378f3fde6c6c6.tar.gz
git-e27e609bbf81271318d99f2643f378f3fde6c6c6.tar.xz
Merge branch 'maint'
* maint: pack-check.c::verify_packfile(): don't run SHA-1 update on huge data Fix infinite loop when deleting multiple packed refs.
Diffstat (limited to 'refs.c')
-rw-r--r--refs.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/refs.c b/refs.c
index e88ed8b2d..f76b4fe20 100644
--- a/refs.c
+++ b/refs.c
@@ -726,7 +726,6 @@ static int repack_without_ref(const char *refname)
}
if (!found)
return 0;
- memset(&packlock, 0, sizeof(packlock));
fd = hold_lock_file_for_update(&packlock, git_path("packed-refs"), 0);
if (fd < 0)
return error("cannot delete '%s' from packed refs", refname);