diff --git a/magit.el b/magit.el index 30b653a9..c3d4fb92 100644 --- a/magit.el +++ b/magit.el @@ -2752,8 +2752,7 @@ If the branch is the current one, offers to switch to `master' first. \('git branch -m OLD NEW')." (interactive (list (magit-read-rev "Old name" (magit-default-rev)) (magit-read-rev "New name" (magit-default-rev)))) - (when branch - (magit-run-git "branch" "-m" (magit-rev-to-git branch) new))) + (magit-run-git "branch" "-m" (magit-rev-to-git old) new)) ;;; Merging