Doom Doctor: Fix insteadOf check

Always triggers when it's correct and never triggers when it's
incorrect.
This commit is contained in:
MithicSpirit 2021-01-31 13:14:19 -05:00
parent 026d961985
commit d3112b5dfc
No known key found for this signature in database
GPG key ID: FEA8F724F2800E40

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"