chore: update ui service manager of new service
This commit is contained in:
+3
-2
@@ -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!")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user