Skip to content

Find repo root properly when upgrade testing in a Cargo workspace#170

Merged
tjgreen42 merged 1 commit intomainfrom
sv/upgrade-test-inside-workspace
Nov 20, 2024
Merged

Find repo root properly when upgrade testing in a Cargo workspace#170
tjgreen42 merged 1 commit intomainfrom
sv/upgrade-test-inside-workspace

Conversation

@syvb
Copy link
Copy Markdown
Contributor

@syvb syvb commented Nov 19, 2024

Previously, the logic in the upgrade tester assumed that the path to the repo root was 4 levels up from the executable. This PR makes it look for the first parent directory with a .git subdirectory, so it works regardless of where the target directory is.

@syvb syvb requested a review from a team as a code owner November 19, 2024 23:40
@tjgreen42 tjgreen42 merged commit 55fcdb5 into main Nov 20, 2024
@tjgreen42 tjgreen42 deleted the sv/upgrade-test-inside-workspace branch November 20, 2024 01:05
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