From e8a27252008ffb7f705d8e545c21233e84fb48ca Mon Sep 17 00:00:00 2001 From: "courtmanr@gmail.com" Date: Sat, 26 Apr 2025 10:29:30 +0100 Subject: [PATCH] fix(install): Force tag fetching during update to handle amended tags --- scripts/install-pulse.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scripts/install-pulse.sh b/scripts/install-pulse.sh index a55ba3c69..524f56413 100644 --- a/scripts/install-pulse.sh +++ b/scripts/install-pulse.sh @@ -203,7 +203,8 @@ perform_update() { git config --global --add safe.directory "$PULSE_DIR" > /dev/null 2>&1 || print_warning "Could not configure safe.directory for root user." print_info "Fetching latest changes from git (running as user $PULSE_USER)..." - if ! sudo -u "$PULSE_USER" git fetch origin --tags; then # Ensure tags are fetched + # Add --force to allow overwriting local tags if they conflict with remote after amends/force-pushes + if ! sudo -u "$PULSE_USER" git fetch origin --tags --force; then # Ensure tags are fetched print_error "Failed to fetch latest changes from git." cd .. return 1