feat: improve error handling in update process by warning on fetch failure
This commit is contained in:
parent
484c421f22
commit
f0f4ce507a
@ -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(
|
||||
|
Loading…
x
Reference in New Issue
Block a user