fix(install): Force tag fetching during update to handle amended tags

This commit is contained in:
courtmanr@gmail.com
2025-04-26 10:29:30 +01:00
parent 42dbf8e2c7
commit e8a2725200
+2 -1
View File
@@ -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