Skip to content

Cramer/2026 03 25/bare repo bug#23728

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

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

Conversation

@jlongster
Copy link
Copy Markdown
Contributor

@jlongster jlongster commented Apr 21, 2026

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 jlongster force-pushed the Cramer/2026-03-25/bare-repo-bug branch from ff59565 to e344e63 Compare April 21, 2026 19:22
@jlongster
Copy link
Copy Markdown
Contributor Author

Nevermind, I was wrong

@jlongster jlongster closed this Apr 21, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants