mirror of
https://github.com/doomemacs/doomemacs
synced 2025-09-18 16:06:56 -05:00
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:
@@ -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)))))
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user