summaryrefslogtreecommitdiffstats
path: root/builtin-branch.c
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2008-11-05 20:33:19 +0100
committerJunio C Hamano <gitster@pobox.com>2008-11-05 20:33:19 +0100
commitefcce2e1f0b37aed045d3e2b747380adf418bdd2 (patch)
tree709170cd9b9dbb34b9873bd482bf5f5f03ffd414 /builtin-branch.c
parentMerge branch 'mv/parseopt-checkout-index' (diff)
parentupdate-ref --no-deref -d: handle the case when the pointed ref is packed (diff)
downloadgit-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-branch.c')
-rw-r--r--builtin-branch.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/builtin-branch.c b/builtin-branch.c
index 8d634ff571..2b3613fea2 100644
--- a/builtin-branch.c
+++ b/builtin-branch.c
@@ -160,7 +160,7 @@ static int delete_branches(int argc, const char **argv, int force, int kinds)
continue;
}
- if (delete_ref(name, sha1)) {
+ if (delete_ref(name, sha1, 0)) {
error("Error deleting %sbranch '%s'", remote,
argv[i]);
ret = 1;