summaryrefslogtreecommitdiff
path: root/builtin-pack-refs.c
diff options
context:
space:
mode:
authorJunio C Hamano <junkio@cox.net>2006-09-27 08:09:18 (GMT)
committerJunio C Hamano <junkio@cox.net>2006-09-27 08:42:44 (GMT)
commit4431fcc4b134ae501e3e57dc568ae4f031e57898 (patch)
tree572af9e0e6b4e387af2c71e60c94953350d28826 /builtin-pack-refs.c
parente9800b28c24465377dc2b8e26b322d362912647c (diff)
downloadgit-4431fcc4b134ae501e3e57dc568ae4f031e57898.zip
git-4431fcc4b134ae501e3e57dc568ae4f031e57898.tar.gz
git-4431fcc4b134ae501e3e57dc568ae4f031e57898.tar.bz2
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 db57fee..4093973 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));