Skip to content

fix(lib): doom/version without git checkout#8833

Open
marienz wants to merge 1 commit into
doomemacs:masterfrom
marienz:doom-version-fix
Open

fix(lib): doom/version without git checkout#8833
marienz wants to merge 1 commit into
doomemacs:masterfrom
marienz:doom-version-fix

Conversation

@marienz

@marienz marienz commented Jun 27, 2026

Copy link
Copy Markdown
Contributor

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.

(I did not spot other locate-dominating-file calls with the same problem.)


  • I searched the issue tracker and this hasn't been PRed before.
  • My changes are not on the do-not-PR list for this project.
  • My commits conform to Doom's git conventions.
  • I am blindly checking these off.
  • This PR contains AI-generated work.
  • Any relevant issues or PRs have been linked to.
  • This a draft PR; I need more time to finish it.

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.
@marienz marienz requested a review from a team as a code owner June 27, 2026 06:42
@hlissner hlissner added the core:lib Relevant to Doom core's libraries label Jun 27, 2026
@hlissner hlissner added this to the v2.3 milestone Jun 27, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

core:lib Relevant to Doom core's libraries

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants