Skip to content

Commit

Permalink
chore: update/install - always fetch tags
Browse files Browse the repository at this point in the history
  • Loading branch information
av committed Sep 27, 2024
1 parent 4a7a982 commit 3487925
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions harbor.sh
Original file line number Diff line number Diff line change
Expand Up @@ -1662,6 +1662,7 @@ update_harbor() {
else
harbor_version=$(resolve_harbor_version)
log_info "Updating to version $harbor_version..."
git fetch --all --tags
git checkout tags/$harbor_version
fi

Expand Down
3 changes: 2 additions & 1 deletion install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,8 @@ install_or_update_project() {
if [ -d "$HARBOR_INSTALL_PATH" ]; then
echo "Existing installation found. Updating..."
cd "$HARBOR_INSTALL_PATH"
git pull
git fetch --all --tags
git checkout "tags/$HARBOR_VERSION"
else
echo "Cloning project repository..."
git clone --depth 1 --branch "$HARBOR_VERSION" "$HARBOR_REPO_URL" "$HARBOR_INSTALL_PATH"
Expand Down

0 comments on commit 3487925

Please sign in to comment.