Merge pull request #4599 from MithicSpirit/develop

Doom Doctor: Fix insteadOf check
This commit is contained in:
Henrik Lissner 2021-01-31 18:57:23 -05:00 committed by GitHub
commit d1e5bfc079
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -94,7 +94,7 @@ in."
(print! (start "Checking for problematic git global settings..."))
(if (executable-find "git")
(unless (zerop (car (doom-call-process "git" "config" "--global" "--get-regexp" "^url\\.git://github\\.com")))
(when (zerop (car (doom-call-process "git" "config" "--global" "--get-regexp" "^url\\.git://github\\.com")))
(warn! "Detected insteadOf rules in your global gitconfig.")
(explain! "Doom's package manager heavily relies on git. In particular, many of its packages "
"are hosted on github. Rewrite rules like these will break it:\n\n"