aboutsummaryrefslogtreecommitdiff
path: root/builtin-fetch--tool.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-fetch--tool.c
parent843142ada000a992fa87bd2dc7796501332a52d9 (diff)
downloadgit-68db31cc289c686c4b4454dfbb121aff59a6c602.tar.gz
git-68db31cc289c686c4b4454dfbb121aff59a6c602.tar.xz
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-fetch--tool.c')
-rw-r--r--builtin-fetch--tool.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/builtin-fetch--tool.c b/builtin-fetch--tool.c
index 2065466f2..b14e78ac3 100644
--- a/builtin-fetch--tool.c
+++ b/builtin-fetch--tool.c
@@ -42,7 +42,7 @@ static int update_ref(const char *action,
if (!rla)
rla = "(reflog update)";
snprintf(msg, sizeof(msg), "%s: %s", rla, action);
- lock = lock_any_ref_for_update(refname, oldval);
+ lock = lock_any_ref_for_update(refname, oldval, 0);
if (!lock)
return 1;
if (write_ref_sha1(lock, sha1, msg) < 0)