mirror of
https://github.com/doomemacs/doomemacs
synced 2025-09-20 16:11:07 -05:00
refactor: deprecate letenv!
`letenv!` is a layover from the days before `with-environment-variables` (introduced in 28.x), and it remained afterwards because I preferred the shorter name. From v3 and onward, Doom's core will be put on a diet which, among other things, will include culling redundant or superfluous functions/macros like this one.
This commit is contained in:
@@ -825,10 +825,11 @@ However, in batch mode, print to stdout instead of stderr."
|
||||
(defadvice! doom-cli--straight-ignore-gitconfig-a (fn &rest args)
|
||||
"Prevent user and system git configuration from interfering with git calls."
|
||||
:around #'straight--process-call
|
||||
(letenv! (("GIT_CONFIG" nil)
|
||||
("GIT_CONFIG_NOSYSTEM" "1")
|
||||
("GIT_CONFIG_GLOBAL" (or (getenv "DOOMGITCONFIG")
|
||||
"/dev/null")))
|
||||
(with-environment-variables
|
||||
(("GIT_CONFIG" nil)
|
||||
("GIT_CONFIG_NOSYSTEM" "1")
|
||||
("GIT_CONFIG_GLOBAL" (or (getenv "DOOMGITCONFIG")
|
||||
"/dev/null")))
|
||||
(apply fn args)))
|
||||
|
||||
;; If the repo failed to clone correctly (usually due to a connection failure),
|
||||
|
Reference in New Issue
Block a user