Skip to content

Use common dir to locate packed-refs and reftable#1657

Open
tmat wants to merge 1 commit intodotnet:release/10.0.4xxfrom
tmat:FixWorktreeRefs
Open

Use common dir to locate packed-refs and reftable#1657
tmat wants to merge 1 commit intodotnet:release/10.0.4xxfrom
tmat:FixWorktreeRefs

Conversation

@tmat
Copy link
Copy Markdown
Member

@tmat tmat commented Apr 21, 2026

The docs https://git-scm.com/docs/git-pack-refs say the packed-refs file is in $GIT_DIR, but it's actually in $GIT_COMMON_DIR. This is mentioned in https://git-scm.com/docs/gitrepository-layout#Documentation/gitrepository-layout.txt-packed-refs.

Similarly, reftable is also located in $GIT_COMMON_DIR even though the doc says it's in $GIT_DIR.

Fixes #1290
Includes #1289 by @vikukush

@tmat tmat requested a review from ViktorHofer as a code owner April 21, 2026 14:47
@tmat
Copy link
Copy Markdown
Member Author

tmat commented Apr 21, 2026

@jjonescz ptal

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