Skip to content

Document missing bundle dependencies during checkout and rebase - #936

Merged
sds merged 1 commit into
mainfrom
docs/gemfile-rebase-760
Nov 10, 2026
Merged

sds merged 1 commit into
mainfrom
docs/gemfile-rebase-760

Conversation

@sds

@sds sds commented Nov 10, 2026

Copy link
Copy Markdown
Owner

Document how an application Gemfile.lock update can prevent Overcommit from loading after checkout and interrupt a rebase with a detached HEAD. Recommend installing the updated branch's dependencies before rebasing or using a separate hook Gemfile.

Add recovery instructions for both an in-progress rebase and an early failure that leaves a detached HEAD without rebase state, plus a command to abort when hooks cannot load. The recovery recipe restarts an interrupted rebase because a failed commit hook can leave a partly replayed commit that --continue alone cannot resolve.

Reproduced with a real divergent-branch rebase and a lockfile requiring an uninstalled rake 13.0.6. Verified that installing the missing gem, aborting, and retrying completes successfully on the original branch. Current Git also encounters the missing bundle in prepare-commit-msg, so suppressing only a post-checkout error would not resolve it. This addresses the documentation gap raised in the issue while keeping dependency errors visible.

Validation: verified the reproduction and recovery in an isolated repository, checked the Markdown/source diff, and ran git diff --check. No runtime code changes.

Closes #760.

@sds
sds merged commit ea357cb into main Nov 10, 2026
20 checks passed
@sds
sds deleted the docs/gemfile-rebase-760 branch November 10, 2026 20:21
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.

gemfile: option causes post-checkout to frequently crash a rebase when working with a team that frequently updates the Gemfile.lock

1 participant