[git] Remove magit-git-executable hack, which is no longer needed

magit v3.2.0 now defines `magit-git-executable` as a
function (actually a defsubst), and two separate variables,
`magit-git-executable` and `magit-remote-git-executable`.  On darwin,
magit already sets `magit-git-executable` to the result of
`(executable-find "git")`, so having this is now redundant in
Spacemacs.
This commit is contained in:
Aaron L. Zeng 2022-06-23 13:23:02 -04:00 committed by Maxi Wolff
parent 4eaff25268
commit af53045448
1 changed files with 0 additions and 6 deletions

View File

@ -243,12 +243,6 @@
(which-key-add-keymap-based-replacements magit-status-mode-map
"gf" "jump-to-unpulled"
"gp" "jump-to-unpushed"))
;; https://magit.vc/manual/magit/MacOS-Performance.html
;; But modified according Tommi Komulainen's advice: "...going through
;; shell raises an eyebrow, and in the odd edge case of not having git
;; setting the executable to empty string(?) feels slightly wrong."
(when-let ((git (executable-find "git")))
(setq magit-git-executable git))
;; full screen magit-status
(when git-magit-status-fullscreen
(setq magit-display-buffer-function