diff options
author | Sven Verdoolaege <skimo@kotnet.org> | 2007-05-09 12:33:20 +0200 |
---|---|---|
committer | Junio C Hamano <junkio@cox.net> | 2007-05-10 15:24:44 -0700 |
commit | 68db31cc289c686c4b4454dfbb121aff59a6c602 (patch) | |
tree | e2a02bc97e8afad4327f9ece6bc81ca497f26602 /receive-pack.c | |
parent | GIT v1.5.2-rc3 (diff) | |
download | tgif-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 'receive-pack.c')
-rw-r--r-- | receive-pack.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/receive-pack.c b/receive-pack.c index 26aa26bcb5..d3c422be58 100644 --- a/receive-pack.c +++ b/receive-pack.c @@ -209,7 +209,7 @@ static const char *update(struct command *cmd) return NULL; /* good */ } else { - lock = lock_any_ref_for_update(name, old_sha1); + lock = lock_any_ref_for_update(name, old_sha1, 0); if (!lock) { error("failed to lock %s", name); return "failed to lock"; |