tools/magit: expand executable paths in remote repos too
Remote repos can benefit from ahead-of-time expansion of these paths too; so Emacs doesn't have to search the remote PATH on every call.
This commit is contained in:
parent
55642fc8bb
commit
5755754702
1 changed files with 3 additions and 4 deletions
|
@ -110,10 +110,9 @@ For example, diffs and log buffers. Accepts `left', `right', `up', and `down'.")
|
||||||
;; projects if the git executable isn't in the exact same location.
|
;; projects if the git executable isn't in the exact same location.
|
||||||
(add-hook! 'magit-status-mode-hook
|
(add-hook! 'magit-status-mode-hook
|
||||||
(defun +magit-optimize-process-calls-h ()
|
(defun +magit-optimize-process-calls-h ()
|
||||||
(unless (file-remote-p default-directory)
|
|
||||||
(setq-local magit-git-executable (executable-find magit-git-executable)
|
(setq-local magit-git-executable (executable-find magit-git-executable)
|
||||||
magit-perl-executable (executable-find magit-perl-executable)
|
magit-perl-executable (executable-find magit-perl-executable)
|
||||||
magit-gitk-executable (executable-find magit-gitk-executable))))))
|
magit-gitk-executable (executable-find magit-gitk-executable)))))
|
||||||
|
|
||||||
|
|
||||||
(use-package! forge
|
(use-package! forge
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue