chore: update ui service manager of new service

This commit is contained in:
Benjamin Labrecque
2026-07-09 14:50:38 +02:00
parent e4b9e6fdbd
commit ed85cbd932
+3 -2
View File
@@ -47,7 +47,7 @@ def git_push_changes(
logger.info(f"Pushing branch '{branch_name}' to origin...")
origin = repo.remote(name="origin")
origin.push(refspec=f"{branch_name}:{branch_name}").raise_if_error()
except Exception as e:
except git.GitCommandError as e:
logger.error(f"Push failed due to an error: {e}")
logger.info("Rolling back local Git index changes...")
@@ -64,7 +64,8 @@ def git_push_changes(
repo.index.reset(paths=files_to_stage)
logger.info("Staging area successfully reset to clean state.")
raise e
error_reason = e.stderr.strip() if e.stderr else "Unknown remote error"
raise RuntimeError(f"Failed to push to git due to: {error_reason}")
logger.info("Successfully pushed!")