Skip to content

Conversation

Byron
Copy link
Member

@Byron Byron commented Sep 22, 2025

supersedes #2184, needed as I can't push there.

moroten and others added 2 commits September 22, 2025 00:43
The upwards search for the repository directory takes a directory as
input and then walks through the parents. It turns out that it was
broken when the repository was the same as the working directory.

The code checked when the directory components had been stripped to "", in
case the directory was replaced with `cwd.parent()`, so the loop missed
to check `cwd` itself. If the input directory was "./something", then
"." was checked which then succeeded.
@Byron Byron marked this pull request as ready for review September 22, 2025 05:11
@Byron Byron enabled auto-merge September 22, 2025 05:14
@Byron Byron merged commit a80a150 into main Sep 22, 2025
48 of 79 checks passed
@Byron Byron deleted the fix-discover-upwards-to-cwd branch September 22, 2025 06:24
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