Permalink
Browse files

Fix `magit--branch-name-at-point'.

  • Loading branch information...
1 parent db44227 commit e7a3b608e6c0c6276bda6cf4709d190928635384 @philjackson philjackson committed Apr 1, 2010
Showing with 1 addition and 4 deletions.
  1. +1 −4 magit.el
View
@@ -3575,10 +3575,7 @@ Prefix arg means justify as well."
(defun magit--branch-name-at-point ()
"Get the branch name in the line at point."
(let ((branch (magit--branch-name-from-line (thing-at-point 'line))))
- (if (or (= (point) (point-max))
- (not branch))
- (error "No branch found in current line"))
- branch))
+ (or branch (error "No branch at point"))))
(defun magit-branches-window-checkout ()
"Check out the branch in the line at point."

0 comments on commit e7a3b60

Please sign in to comment.