Skip to content

Commit

Permalink
Fix: fetch PR commits in ci check
Browse files Browse the repository at this point in the history
  • Loading branch information
Nadrieril committed Nov 14, 2024
1 parent 6b9d441 commit 831877e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions scripts/ci-check-charon-pin-is-forward.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@ echo "This PR updates the charon pin from $OLD_CHARON_PIN to $NEW_CHARON_PIN"
git clone https://github.com/AeneasVerif/charon
cd charon

# Fetch commits in PRs
git config remote.origin.fetch "+refs/pull/*/head:refs/remotes/origin/pr/*"
git fetch --all

if ! git merge-base --is-ancestor "$OLD_CHARON_PIN" "$NEW_CHARON_PIN"; then
echo "Error: the new charon pin does not have the old one as its ancestor. The pin must only move forward."
exit 1
Expand Down

0 comments on commit 831877e

Please sign in to comment.