Skip to content

Commit

Permalink
fix for branches starting with 'to'
Browse files Browse the repository at this point in the history
  • Loading branch information
kidd committed Nov 20, 2012
1 parent 1dbbcd5 commit 6bdb9db
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion magit.el
Original file line number Diff line number Diff line change
Expand Up @@ -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)))))))
Expand Down

0 comments on commit 6bdb9db

Please sign in to comment.