Skip to content

Commit d3311c3

Browse files
committed
raise exceptions on git push error
1 parent bf93575 commit d3311c3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scripts/shared.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ def push_changes(repo_path):
108108
try:
109109
repo = Repo(repo_path)
110110
origin = repo.remote(name="origin")
111-
origin.push()
111+
origin.push().raise_if_error()
112112
logging.info("Changes pushed")
113113
except InvalidGitRepositoryError:
114114
raise QuantifyingException(f"Invalid Git repository at {repo_path}", 2)

0 commit comments

Comments
 (0)