fix: user/system git config breaking straight installer

Fix: #6346
This commit is contained in:
Henrik Lissner 2022-05-02 02:11:52 +02:00
parent 0597466261
commit 3b789752a3
No known key found for this signature in database
GPG key ID: B60957CA074D39A3

View file

@ -111,6 +111,10 @@ uses a straight or package.el command directly).")
;;; Bootstrappers
(defun doom--ensure-straight (recipe pin)
(letenv! (("GIT_CONFIG" nil)
("GIT_CONFIG_NOSYSTEM" "1")
("GIT_CONFIG_GLOBAL" (or (getenv "DOOMGITCONFIG")
"/dev/null")))
(let ((repo-dir (doom-path straight-base-dir "straight/repos/straight.el"))
(repo-url (concat "http" (if gnutls-verify-error "s")
"://github.com/"
@ -180,7 +184,7 @@ uses a straight or package.el command directly).")
:build nil)
(emacsmirror-mirror :type git :host github
:repo "emacs-straight/emacsmirror-mirror"
:build nil)))))
:build nil))))))
(defun doom--ensure-core-packages (packages)
(doom-log "Installing core packages")