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.
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.