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:
parent
0ecf69afaf
commit
382058e1e6
1 changed files with 3 additions and 1 deletions
|
@ -267,7 +267,9 @@ ready to be pasted in a bug report on github."
|
||||||
(car doom-profile)
|
(car doom-profile)
|
||||||
(cdr doom-profile))
|
(cdr doom-profile))
|
||||||
"PROFILE=_@0")
|
"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)))
|
(symlink-path doom-user-dir)))
|
||||||
(shell . ,(abbrev-path shell-file-name))
|
(shell . ,(abbrev-path shell-file-name))
|
||||||
(features . ,system-configuration-features)
|
(features . ,system-configuration-features)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue