feat: improve error handling in update process by warning on fetch failure

This commit is contained in:
2025-03-14 17:31:46 +01:00
parent 484c421f22
commit f0f4ce507a

View File

@ -59,9 +59,10 @@ def check_git_repository():
# Fetch the latest changes
status, output = run_command(["git", "fetch"], shell=False)
if not status:
printfe("red", f"Failed to fetch changes from git repository: {output}")
printfe("yellow", f"Warning: Failed to fetch changes from git repository: {output}")
printfe("yellow", "Continuing update process without repository check...")
os.chdir(current_dir)
return False
return True
# Check if remote branch exists
status, output = run_command(