Skip to content

Commit 2c4fea3

Browse files
authored
Merge pull request #2584 from cloudflare/dlapid/prepush_executable
set githooks pre-push +x
2 parents 94c859e + 4f8078d commit 2c4fea3

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

githooks/pre-push

100644100755
Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,10 @@ fi
1515

1616
while read LOCAL_REF LOCAL_SHA REMOTE_REF REMOTE_SHA
1717
do
18-
git fetch origin master &>/dev/null
19-
# Check all local changes, not present in origin/master, for lint.
18+
git fetch origin main &>/dev/null
19+
# Check all local changes, not present in origin/main, for lint.
2020
set +e
21-
$PYTHON_PATH "$(dirname -- $BASH_SOURCE)/../tools/cross/format.py" --check git --source $LOCAL_SHA --target origin/master
21+
$PYTHON_PATH "$(dirname -- $BASH_SOURCE)/../tools/cross/format.py" --check git --source $LOCAL_SHA --target origin/main
2222
EXIT_CODE=$?
2323
set -e
2424
case $EXIT_CODE in
@@ -42,4 +42,3 @@ do
4242
;;
4343
esac
4444
done
45-

0 commit comments

Comments
 (0)