aboutsummaryrefslogtreecommitdiff
path: root/builtin-fetch--tool.c
diff options
context:
space:
mode:
authorJunio C Hamano <junkio@cox.net>2007-05-20 02:18:47 -0700
committerJunio C Hamano <junkio@cox.net>2007-05-20 02:18:47 -0700
commit063581e9b648b4da3b83061b06aed7ed417411e0 (patch)
treef9e833dc777db2963aa49bfc2bb5d29b457f33d6 /builtin-fetch--tool.c
parentcc93020f5213b589ff1e512185c47d8c38a4b994 (diff)
parent68db31cc289c686c4b4454dfbb121aff59a6c602 (diff)
downloadgit-063581e9b648b4da3b83061b06aed7ed417411e0.tar.gz
git-063581e9b648b4da3b83061b06aed7ed417411e0.tar.xz
Merge branch 'sv/checkout'
* sv/checkout: git-update-ref: add --no-deref option for overwriting/detaching ref
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 12adb3833..ed4d5de5d 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)