Skip to content

Commit d967dc9

Browse files
redsun82Copilot
andcommitted
Fix REPO_ROOT computation in run-test.sh
Use `git rev-parse --show-toplevel` instead of fragile relative path. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent d78037d commit d967dc9

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • rust/ql/lib/upgrades/66a489863649185f4a9770f894505803059a1312/test

rust/ql/lib/upgrades/66a489863649185f4a9770f894505803059a1312/test/run-test.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
set -euo pipefail
66

77
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
8-
REPO_ROOT="$(cd "$SCRIPT_DIR/../../../../.." && pwd)"
8+
REPO_ROOT="$(git rev-parse --show-toplevel)"
99
OLD_COMMIT="${OLD_COMMIT:-491c373e076}" # origin/main at time of this upgrade
1010

1111
cd "$REPO_ROOT"

0 commit comments

Comments
 (0)