summaryrefslogtreecommitdiff
path: root/builtin-pack-refs.c
diff options
context:
space:
mode:
authorJunio C Hamano <junkio@cox.net>2006-09-27 01:09:18 -0700
committerJunio C Hamano <junkio@cox.net>2006-09-27 01:42:44 -0700
commit4431fcc4b134ae501e3e57dc568ae4f031e57898 (patch)
tree572af9e0e6b4e387af2c71e60c94953350d28826 /builtin-pack-refs.c
parente9800b28c24465377dc2b8e26b322d362912647c (diff)
downloadgit-4431fcc4b134ae501e3e57dc568ae4f031e57898.tar.gz
Clean-up lock-ref implementation
This drops "mustexist" parameter lock_ref_sha1() and lock_any_ref_forupdate() functions take. Signed-off-by: Junio C Hamano <junkio@cox.net>
Diffstat (limited to 'builtin-pack-refs.c')
-rw-r--r--builtin-pack-refs.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/builtin-pack-refs.c b/builtin-pack-refs.c
index db57fee72d..4093973a05 100644
--- a/builtin-pack-refs.c
+++ b/builtin-pack-refs.c
@@ -53,7 +53,7 @@ static int handle_one_ref(const char *path, const unsigned char *sha1,
/* make sure nobody touched the ref, and unlink */
static void prune_ref(struct ref_to_prune *r)
{
- struct ref_lock *lock = lock_ref_sha1(r->name + 5, r->sha1, 1);
+ struct ref_lock *lock = lock_ref_sha1(r->name + 5, r->sha1);
if (lock) {
unlink(git_path("%s", r->name));