Skip to content

Commit

Permalink
Ensure avalanche build script fetches tags for an existing clone
Browse files Browse the repository at this point in the history
  • Loading branch information
marun committed Nov 30, 2023
1 parent dd37eb3 commit 15d114c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion scripts/build_avalanchego.sh
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,8 @@ echo "checking out target AvalancheGo version ${avalanche_version}"
if [[ -d "${AVALANCHEGO_CLONE_PATH}" ]]; then
echo "updating existing clone"
cd "${AVALANCHEGO_CLONE_PATH}"
git fetch
# Ensure the clone has all commits and tags that might be referenced by $avalanche_version
git fetch --tags
else
echo "creating new clone"
git clone https://github.com/ava-labs/avalanchego.git "${AVALANCHEGO_CLONE_PATH}"
Expand Down

0 comments on commit 15d114c

Please sign in to comment.