Skip to content

repository: use commondir for is_shallow - #7322

Merged
ethomson merged 1 commit into
libgit2:mainfrom
roberth:fix-is_shallow
Jul 24, 2026
Merged

ethomson merged 1 commit into
libgit2:mainfrom
roberth:fix-is_shallow

Conversation

@roberth

@roberth roberth commented Jul 20, 2026

Copy link
Copy Markdown
Contributor

Just a little fix.
The shallow file resides in <parent>/.git, not <parent>/.git/worktrees/foo.

Found through Nix.

That file is in `<parent>/.git`, not `<parent>/.git/worktrees/foo`.
@ethomson

Copy link
Copy Markdown
Member

Thanks!

@ethomson
ethomson merged commit 2339a72 into libgit2:main Jul 24, 2026
22 checks passed
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