Skip to content

Fix version command outside Git repositories - #270

Open
bwalsh wants to merge 1 commit into
developmentfrom
fix/version-no-directory
Open

bwalsh wants to merge 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.

This branch has not been deployed

No deployments
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

1 participant