Skip to content

Ensure repo.git can be opened as Git repository - #14547

Merged
Byron merged 1 commit into
masterfrom
flyby
Jul 1, 2026
Merged

Byron merged 1 commit into
masterfrom
flyby

Conversation

@Byron

@Byron Byron commented Jul 1, 2026 •

Copy link
Copy Markdown
Collaborator

Add a test here, while the fix comes from gix.

Tasks

Notes for the reviewer

This also includes a full cargo update as otherwise gix-trace wouldn't resolve. I cleared GitHub caches preemptively to be sure the runners don't run out of space.

As long as git-meta/git-meta#102 isn't merge and the revision of git-meta-lib is updated here, there will by gix duplicates in the dependency tree.
This can be a follow-up, or be done as part of the PR here depending on timing.

@github-actions github-actions Bot added the rust Pull requests that update Rust code label Jul 1, 2026
@Byron Byron linked an issue Jul 1, 2026 that may be closed by this pull request
@Byron
Byron marked this pull request as ready for review July 1, 2026 04:10
Copilot AI review requested due to automatic review settings July 1, 2026 04:10

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR adds a regression test to ensure a non-bare repository whose worktree directory name ends with .git can be added as a GitButler project and reopened reliably, and updates gix/gix-testtools to a revision that contains the upstream fix.

Changes:

  • Add a new gitbutler-project integration test covering a worktree directory named non-bare.git and verifying git_dir, serialized path, and open_isolated_repo() behavior.
  • Bump gix and gix-testtools workspace dependencies (and the [patch.crates-io] override) to the new git revision containing the fix.

Reviewed changes

Copilot reviewed 2 out of 3 changed files in this pull request and generated 1 comment.

File Description
crates/gitbutler-project/tests/project/main.rs Adds an integration test to validate adding/loading a repo whose worktree directory ends with .git.
Cargo.toml Updates gix/gix-testtools versions and pins gix via [patch.crates-io] to the same upstream revision.

Comment thread Cargo.toml Outdated

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 09f5fbe769

ℹ️ 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".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread Cargo.toml Outdated
Add a test here, while the fix comes from `gix`.
This also includes a full `cargo update` as otherwise dependencies
wouldn't resolve.
@Byron
Byron enabled auto-merge July 1, 2026 22:44
@Byron
Byron merged commit 782227b into master Jul 1, 2026
45 checks passed
@Byron
Byron deleted the flyby branch July 1, 2026 23:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

rust Pull requests that update Rust code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

GitButler does not open repositories ending with .git

3 participants