From cb49072477272c751a4b3d2e8a75947921c07433 Mon Sep 17 00:00:00 2001 From: Oscar Fuentes Date: Mon, 24 May 2010 04:35:29 +0200 Subject: [PATCH] Fixed magit-move-branch --- magit.el | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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