fix(debug): doom-info: improve git error

In case Doom has been deployed without git (for some reason), or with an
unconventional structure.
This commit is contained in:
Henrik Lissner 2023-03-20 20:10:12 -04:00
parent 0ecf69afaf
commit 382058e1e6
No known key found for this signature in database
GPG key ID: B60957CA074D39A3

View file

@ -267,7 +267,9 @@ ready to be pasted in a bug report on github."
(car doom-profile)
(cdr doom-profile))
"PROFILE=_@0")
(sh "git" "log" "-1" "--format=%D %h %ci")
(if (file-exists-p! ".git" doom-emacs-dir)
(sh "git" "log" "-1" "--format=%D %h %ci")
"[no repo]")
(symlink-path doom-user-dir)))
(shell . ,(abbrev-path shell-file-name))
(features . ,system-configuration-features)