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:
parent
fcdd238291
commit
7ec623593e
3 changed files with 38 additions and 24 deletions
|
@ -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)))))
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue