Merge pull request #248 from UndeadKernel/fix-git-link

When calling +vcs-root, load git-link first.
This commit is contained in:
Henrik Lissner 2017-10-19 22:31:20 +02:00 committed by GitHub
commit 6772bc18a8

View file

@ -3,6 +3,7 @@
;;;###autoload ;;;###autoload
(defun +vcs-root () (defun +vcs-root ()
"Get git url root." "Get git url root."
(require 'git-link)
(let ((remote (git-link--select-remote))) (let ((remote (git-link--select-remote)))
(if (git-link--remote-host remote) (if (git-link--remote-host remote)
(format "https://%s/%s" (format "https://%s/%s"