We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2d76a9d commit c754d05Copy full SHA for c754d05
src/etc/pre-push.sh
@@ -10,16 +10,8 @@ set -Eeuo pipefail
10
# https://github.com/rust-lang/rust/issues/77620#issuecomment-705144570
11
unset GIT_DIR
12
ROOT_DIR="$(git rev-parse --show-toplevel)"
13
-COMMAND="$ROOT_DIR/x.py test tidy"
14
15
-if [[ "$OSTYPE" == "msys" || "$OSTYPE" == "win32" ]]; then
16
- COMMAND="python $COMMAND"
17
-elif ! command -v python &> /dev/null; then
18
- COMMAND="python3 $COMMAND"
19
-fi
20
-
21
-echo "Running pre-push script '$COMMAND'"
+echo "Running pre-push script $ROOT_DIR/x test tidy"
22
23
cd "$ROOT_DIR"
24
25
-$COMMAND
+./x test tidy
0 commit comments