Skip to content

Commit

Permalink
Use HEAD instead of origin/master
Browse files Browse the repository at this point in the history
  • Loading branch information
hpeebles committed Dec 7, 2023
1 parent 0defaf4 commit ac31503
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/download-canister-wasm.sh
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ then
RELEASE_TAG_ID=$(git tag -l "$WASM_SRC-*")
fi

CHILD_COMMIT_ID=$(git rev-list --ancestry-path $RELEASE_TAG_ID..origin/master | tail -1)
CHILD_COMMIT_ID=$(git rev-list --ancestry-path $RELEASE_TAG_ID..HEAD | tail -1)
if [[ -z $CHILD_COMMIT_ID ]]
then
CANISTER_TAG_ID=$(git tag -l --sort=-version:refname "*-$CANISTER_NAME" | head -1)
Expand All @@ -33,7 +33,7 @@ then
if [[ -z $CANISTER_TAG_ID ]]
then
# If the canister has not been released yet then download the latest version
COMMIT_ID=$(git rev-parse origin/master)
COMMIT_ID=$(git rev-parse HEAD)
else
COMMIT_ID=$(git rev-list $CANISTER_TAG_ID -1)
fi
Expand Down

0 comments on commit ac31503

Please sign in to comment.