Directly look for git-svn ref name, don't use magit-list-interesting-refs.

* magit.el (magit-get-svn-ref): Here, by using magit-ref-exists-p.
This commit is contained in:
Marius Vollmer 2009-06-07 22:04:35 +03:00
parent 03329dbfc3
commit c208d194b6

View file

@ -2102,9 +2102,12 @@ in log buffer."
(not (null (magit-get-svn-ref)))) (not (null (magit-get-svn-ref))))
(defun magit-get-svn-ref () (defun magit-get-svn-ref ()
(let ((interesting-refs (magit-list-interesting-refs))) (cond ((magit-ref-exists-p "refs/remotes/git-svn")
(or (cdr (assoc "git-svn (git-svn)" interesting-refs)) "refs/remotes/git-svn")
(cdr (assoc "trunk (git-svn)" interesting-refs))))) ((magit-ref-exists-p "refs/remotes/trunk")
"refs/remotes/trunk")
(t
nil)))
;;; Resetting ;;; Resetting