diff --git a/lisp/lib/debug.el b/lisp/lib/debug.el index 43d0bdfbe..2ee08c149 100644 --- a/lisp/lib/debug.el +++ b/lisp/lib/debug.el @@ -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)