summaryrefslogtreecommitdiff
path: root/builtin-reflog.c
diff options
context:
space:
mode:
authorSven Verdoolaege <skimo@kotnet.org>2007-05-09 12:33:20 +0200
committerJunio C Hamano <junkio@cox.net>2007-05-10 15:24:44 -0700
commit68db31cc289c686c4b4454dfbb121aff59a6c602 (patch)
treee2a02bc97e8afad4327f9ece6bc81ca497f26602 /builtin-reflog.c
parent843142ada000a992fa87bd2dc7796501332a52d9 (diff)
downloadgit-68db31cc289c686c4b4454dfbb121aff59a6c602.tar.gz
git-update-ref: add --no-deref option for overwriting/detaching ref
git-checkout is also adapted to make use of this new option instead of the handcrafted command sequence. Signed-off-by: Sven Verdoolaege <skimo@kotnet.org> Signed-off-by: Junio C Hamano <junkio@cox.net>
Diffstat (limited to 'builtin-reflog.c')
-rw-r--r--builtin-reflog.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/builtin-reflog.c b/builtin-reflog.c
index 4c39f1da98..ce093cad78 100644
--- a/builtin-reflog.c
+++ b/builtin-reflog.c
@@ -249,7 +249,7 @@ static int expire_reflog(const char *ref, const unsigned char *sha1, int unused,
/* we take the lock for the ref itself to prevent it from
* getting updated.
*/
- lock = lock_any_ref_for_update(ref, sha1);
+ lock = lock_any_ref_for_update(ref, sha1, 0);
if (!lock)
return error("cannot lock ref '%s'", ref);
log_file = xstrdup(git_path("logs/%s", ref));