disable dired-git-info hook in remote directories

This commit is contained in:
Max Nickel 2019-11-02 14:28:35 -04:00
parent 49fce0b1c3
commit b7046de2ca

View file

@ -10,7 +10,9 @@
;;;###autoload ;;;###autoload
(defun +dired-enable-git-info-h () (defun +dired-enable-git-info-h ()
(if (locate-dominating-file "." ".git") (if (and
(not (file-remote-p default-directory))
(locate-dominating-file "." ".git"))
(dired-git-info-mode 1))) (dired-git-info-mode 1)))
;;;###autoload ;;;###autoload