From 37ad0f2112a3e4774e96cdb4b184ccd994c8433c Mon Sep 17 00:00:00 2001 From: Marien Zwart Date: Sat, 27 Jun 2026 16:30:28 +1000 Subject: [PATCH] fix(lib): doom/version without git checkout The locate-dominating-file check for Doom and its modules being in a Git repository before running git commands had its arguments reversed. It looks like this causes it to always return non-nil. Fix this to make the intended "not a git repo" show up when Doom is not in a git repo, while still showing the revision when in a git repo. --- lisp/lib/debug.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lisp/lib/debug.el b/lisp/lib/debug.el index c540ce1de7d..fd974b5c0cd 100644 --- a/lisp/lib/debug.el +++ b/lisp/lib/debug.el @@ -391,7 +391,7 @@ FILL-COLUMN determines the column at which lines will be broken." (interactive) (letf! ((defun gitinfo (dir) (let ((default-directory (expand-file-name dir))) - (if (locate-dominating-file ".git" default-directory) + (if (locate-dominating-file default-directory ".git") (format "%s %s" (or (cdr (doom-call-process "git" "log" "-1" "--format=%h %cs")) "-")