The wazzup buffer might already exist, so if we look at the branch
name in it, it might refer to another branch, even another repository.
---
 magit.el |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/magit.el b/magit.el
index 3576f5b..aa50672 100644
--- a/magit.el
+++ b/magit.el
@@ -3361,11 +3361,12 @@ Prefix arg means justify as well."
 
 (defun magit-wazzup (&optional all)
   (interactive "P")
-  (let* ((topdir (magit-get-top-dir default-directory)))
+  (let ((topdir (magit-get-top-dir default-directory))
+       (current-branch (magit-get-current-branch)))
     (switch-to-buffer "*magit-wazzup*")
     (magit-mode-init topdir 'wazzup
                     #'magit-refresh-wazzup-buffer
-                    (magit-get-current-branch) all)))
+                    current-branch all)))
 
 ;;; Miscellaneous
 
-- 
1.7.0.3


To unsubscribe from this group, send email to magit+unsubscribegooglegroups.com 
or reply to this email with the words "REMOVE ME" as the subject.

Reply via email to