We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4437b4b commit f498949Copy full SHA for f498949
src/etc/pre-commit.sh
@@ -7,15 +7,17 @@
7
8
set -Eeuo pipefail
9
10
-ROOT_DIR="$(git rev-parse --show-toplevel)";
11
-COMMAND="$ROOT_DIR/x.py test tidy --bless";
+# https://github.com/rust-lang/rust/issues/77620#issuecomment-705144570
+unset GIT_DIR
12
+ROOT_DIR="$(git rev-parse --show-toplevel)"
13
+COMMAND="$ROOT_DIR/x.py test tidy --bless"
14
15
if [[ "$OSTYPE" == "msys" || "$OSTYPE" == "win32" ]]; then
16
COMMAND="python $COMMAND"
17
fi
18
-echo "Running pre-commit script '$COMMAND'";
19
+echo "Running pre-commit script '$COMMAND'"
20
21
cd "$ROOT_DIR"
22
-$COMMAND;
23
+$COMMAND
0 commit comments