Skip to content

Commit

Permalink
ci: fetch before checking SHAs
Browse files Browse the repository at this point in the history
  • Loading branch information
kalvinnchau committed Feb 1, 2025
1 parent 66e7fe9 commit a5a8d3b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Justfile
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ ensure-main:
fi
# check that main is up to date with upstream main
git fetch
# @{u} refers to upstream branch of current branch
if [ "$(git rev-parse HEAD)" != "$(git rev-parse @{u})" ]; then \
echo "Error: Your branch is not up to date with the upstream main branch"; \
Expand Down

0 comments on commit a5a8d3b

Please sign in to comment.