diff options
author | Junio C Hamano <gitster@pobox.com> | 2008-11-05 20:33:19 +0100 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2008-11-05 20:33:19 +0100 |
commit | efcce2e1f0b37aed045d3e2b747380adf418bdd2 (patch) | |
tree | 709170cd9b9dbb34b9873bd482bf5f5f03ffd414 /builtin-receive-pack.c | |
parent | Merge branch 'mv/parseopt-checkout-index' (diff) | |
parent | update-ref --no-deref -d: handle the case when the pointed ref is packed (diff) | |
download | git-efcce2e1f0b37aed045d3e2b747380adf418bdd2.tar.xz git-efcce2e1f0b37aed045d3e2b747380adf418bdd2.zip |
Merge branch 'mv/maint-branch-m-symref'
* mv/maint-branch-m-symref:
update-ref --no-deref -d: handle the case when the pointed ref is packed
git branch -m: forbid renaming of a symref
Fix git update-ref --no-deref -d.
rename_ref(): handle the case when the reflog of a ref does not exist
Fix git branch -m for symrefs.
Diffstat (limited to 'builtin-receive-pack.c')
-rw-r--r-- | builtin-receive-pack.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/builtin-receive-pack.c b/builtin-receive-pack.c index 2c0225c89a..7f9f134806 100644 --- a/builtin-receive-pack.c +++ b/builtin-receive-pack.c @@ -236,7 +236,7 @@ static const char *update(struct command *cmd) warning ("Allowing deletion of corrupt ref."); old_sha1 = NULL; } - if (delete_ref(name, old_sha1)) { + if (delete_ref(name, old_sha1, 0)) { error("failed to delete %s", name); return "failed to delete"; } |