Skip to content

revert: clone all branches and defer check for existing branch#92

Merged
dwilding merged 5 commits intomainfrom
clone-strategy
Feb 27, 2026
Merged

revert: clone all branches and defer check for existing branch#92
dwilding merged 5 commits intomainfrom
clone-strategy

Conversation

@dwilding
Copy link
Copy Markdown
Owner

@dwilding dwilding commented Feb 27, 2026

This PR reverts #78 and #83, which were released in version 0.5.0. In practice, I found that gimmegit completes faster if it clones the entire repo at once (all branches) instead of initially cloning with --single-branch.

In the case of cloning and creating a new branch, we now check for a branch conflict after cloning. This doesn't fail as quickly, but I can accept that trade-off as I've rarely hit a branch conflict.

With -j/--jumbo, we still check for a branch conflict before cloning. When shallow cloning, we don't necessarily get refs created for all branches on the remote.

Copilot AI review requested due to automatic review settings February 27, 2026 01:12

This comment was marked as resolved.

This comment was marked as resolved.

@dwilding dwilding merged commit 967f399 into main Feb 27, 2026
9 checks passed
@dwilding dwilding deleted the clone-strategy branch February 27, 2026 04:52
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.

2 participants