Conversation
Under that setting git refuses to discover a bare repository through -C, so every command run against the bare cache clone failed. Bare repositories are now passed with --git-dir, while working trees such as local overrides keep -C. #7515 Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
hsbt
force-pushed
the
claude/determined-pike-9d2762
branch
from
September 15, 2026 10:40
508dcc5 to
65b695c
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
With
safe.bareRepository=explicitin the git config, every Gemfile with agit:source fails.bundle lock,bundle installandbundle outdatedall stop withfatal: cannot use bare repository, because Bundler runs git with-Cagainst its bare cache clone and git refuses to discover a bare repository that way.Bare repositories are now passed with
--git-dir, as suggested in the issue. Working trees keep-C, since a local override points at a checkout that--git-dircannot open. Nothing changes for users without this setting.The new spec installs and updates a git gem under this setting and fails on master.
Fixes #7515
Generated with Claude Code