When calling +vcs-root, load git-link first.

This commit is contained in:
Undead Kernel 2017-10-18 20:30:20 +02:00
parent 801a3dc95a
commit 771199e904

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"