Fix magit in remote repos

And backport executable-find from Emacs 27.1 so we don't have to do
these version checks every time we use it.
This commit is contained in:
Henrik Lissner 2020-11-01 18:48:45 -05:00
parent fcdd238291
commit 7ec623593e
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395
3 changed files with 38 additions and 24 deletions

View file

@ -112,7 +112,7 @@ For example, diffs and log buffers. Accepts `left', `right', `up', and `down'.")
;; git executable isn't in the exact same location.
(add-hook! 'magit-status-mode-hook
(defun +magit-optimize-process-calls-h ()
(when-let (path (executable-find magit-git-executable))
(when-let (path (executable-find magit-git-executable t))
(setq-local magit-git-executable path)))))