[go: nahoru, domu]

Skip to content

Commit

Permalink
Do a checkout of compared branches to ensure prepush checks work (#34706
Browse files Browse the repository at this point in the history
)
  • Loading branch information
samueljseay committed Sep 19, 2022
1 parent 53b8213 commit 8478993
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions bin/pre-push.sh
Original file line number Diff line number Diff line change
Expand Up @@ -31,4 +31,8 @@ if [ $? -ne 0 ]; then
exit 1
fi

# Ensure both branches are tracked or check-changelogger-use will fail.
git checkout $PROTECTED_BRANCH --quiet
git checkout $CURRENT_BRANCH --quiet

php tools/monorepo/check-changelogger-use.php $PROTECTED_BRANCH $CURRENT_BRANCH

0 comments on commit 8478993

Please sign in to comment.