We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 94c859e + 4f8078d commit 2c4fea3Copy full SHA for 2c4fea3
githooks/pre-push
100644
100755
@@ -15,10 +15,10 @@ fi
15
16
while read LOCAL_REF LOCAL_SHA REMOTE_REF REMOTE_SHA
17
do
18
- git fetch origin master &>/dev/null
19
- # Check all local changes, not present in origin/master, for lint.
+ git fetch origin main &>/dev/null
+ # Check all local changes, not present in origin/main, for lint.
20
set +e
21
- $PYTHON_PATH "$(dirname -- $BASH_SOURCE)/../tools/cross/format.py" --check git --source $LOCAL_SHA --target origin/master
+ $PYTHON_PATH "$(dirname -- $BASH_SOURCE)/../tools/cross/format.py" --check git --source $LOCAL_SHA --target origin/main
22
EXIT_CODE=$?
23
set -e
24
case $EXIT_CODE in
@@ -42,4 +42,3 @@ do
42
;;
43
esac
44
done
45
-
0 commit comments