Skip to content

Commit

Permalink
Merge pull request #2584 from cloudflare/dlapid/prepush_executable
Browse files Browse the repository at this point in the history
set githooks pre-push +x
  • Loading branch information
danlapid authored Aug 21, 2024
2 parents 94c859e + 4f8078d commit 2c4fea3
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions githooks/pre-push
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,10 @@ fi

while read LOCAL_REF LOCAL_SHA REMOTE_REF REMOTE_SHA
do
git fetch origin master &>/dev/null
# 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.
set +e
$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
EXIT_CODE=$?
set -e
case $EXIT_CODE in
Expand All @@ -42,4 +42,3 @@ do
;;
esac
done

0 comments on commit 2c4fea3

Please sign in to comment.