{{ message }}
test: cover subdirectory discovery and pathspec commands in bare-repository worktrees - #2228
Open
christianvuerings wants to merge 2 commits into
Conversation
christianvuerings
marked this pull request as ready for review
September 6, 2026 23:34
Byron
approved these changes
Sep 7, 2026
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.

Follow-up to #2223 / #2224, which fixed
Repotreating a linked worktree of a bare repository as bare. The existing regression test checksrepo.bareandworking_tree_dirwhenRepo()is opened on the worktree root. This adds the two steps that actually broke for us in 3.1.61 and are not exercised yet:discovery from a subdirectory with
search_parent_directories=True(how tools such asmkdocs-git-revision-date-localized-pluginopen the repo), assertingworking_diris the worktree rather than the bare common dir;running a git command with an absolute pathspec through
repo.git, which on 3.1.61 failed with:Our CI checks every job out as a linked worktree of a shared bare repository (
git --git-dir=<bare> worktree add <job-dir> <sha>), so this was the shape that took down our documentation builds when the build image picked up 3.1.61. The new assertions pass onmain(with 180b1ff) and fail on 3.1.61.No behavior change; test only.