Skip to content

Fix version command outside Git repositories - #270

Merged
matthewpeterkort merged 1 commit into
developmentfrom
fix/version-no-directory
Nov 2, 2026
Merged

matthewpeterkort merged 1 commit into
developmentfrom
fix/version-no-directory

Conversation

@bwalsh

@bwalsh bwalsh commented Oct 28, 2026

Copy link
Copy Markdown
Contributor

git-drs version failed outside a Git repository because startup tried to open a repository log before running the command. Skip repository logging for version so it can print build metadata from any directory.

Add an executable regression test that checks successful version output, empty stderr, and no created files when run from an empty directory. Update the installation and command documentation to describe this behavior.

Validation: go test -count=1 -timeout=3m ./... passed, including the version regression test. Build-tagged integration tests were not run.

Closes #268.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 28, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-28T22:24:39.258365Z 55f9610 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@matthewpeterkort
matthewpeterkort self-requested a review November 2, 2026 23:06
@matthewpeterkort
matthewpeterkort merged commit 58efafb into development Nov 2, 2026
12 checks passed
@matthewpeterkort
matthewpeterkort deleted the fix/version-no-directory branch November 2, 2026 23:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

bug/version-complains about missing dir

2 participants