Browse files

fix for branches starting with 'to'

  • Loading branch information...
1 parent 1dbbcd5 commit 6bdb9db752bde665bce8f628380d206047047022 @kidd committed Nov 20, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 magit.el
@@ -3891,7 +3891,7 @@ With prefix, forces the move even if NEW already exists.
((commit) (magit-name-rev (substring info 0 magit-sha1-abbrev-length)))
((wazzup) info)
(t (let ((lines (magit-git-lines "reflog")))
- (while (not (string-match "moving from \\(.*\\) to" (car lines)))
+ (while (not (string-match "moving from \\(.+?\\) to" (car lines)))
(setq lines (cdr lines)))
(when lines
(match-string 1 (car lines)))))))

0 comments on commit 6bdb9db

Please sign in to comment.