Skip to content

Cramer/2026 03 25/bare repo bug - #23728

Closed
jlongster wants to merge 3 commits into
devfrom
Cramer/2026-03-25/bare-repo-bug
Closed

Cramer/2026 03 25/bare repo bug#23728
jlongster wants to merge 3 commits into
devfrom
Cramer/2026-03-25/bare-repo-bug

Conversation

@jlongster

@jlongsterjlongster commented Apr 21, 2026

Copy link
Copy Markdown
Contributor

Copy of #19054 with a minor refactoring

Use git-common-dir as the project ID cache location so bare-repo-backed worktrees do not write to a shared parent .git path. Add regression tests that reproduce parent-path cache collisions across bare repos.
Detect bare repos by checking if git-common-dir basename ends with .git (excluding .git itself). This ensures both the worktree field in the database and the cache location are correct for bare-repo-backed worktrees.
@jlongster
jlongsterforce-pushed the Cramer/2026-03-25/bare-repo-bug branch from ff59565 to e344e63CompareApril 21, 2026 19:22
@jlongster

Copy link
Copy Markdown
ContributorAuthor

Nevermind, I was wrong

Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

@jlongster@StevenTCramer