We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 97826d7 commit 3d9e45bCopy full SHA for 3d9e45b
marge/job.py
@@ -351,7 +351,9 @@ def update_from_target_branch_and_push(
351
start_commit='origin/' + target_branch,
352
)
353
branch_rewritten = True
354
- repo.push_force(source_branch, source_repo_url)
+ source_sha = repo.get_commit_hash('source/' + source_branch)
355
+ if rewritten_sha != source_sha:
356
+ repo.push_force(source_branch, source_repo_url)
357
changes_pushed = True
358
except git.GitError:
359
if not branch_updated:
0 commit comments