mirror of
https://github.com/ansible/awx.git
synced 2026-01-15 11:50:42 -03:30
Merge pull request #10005 from AlanCoding/force_on_override
Update with force option if branch_override Addresses a reported issue where force-pushing to feature branches did not work. Connect #9371 (comment) Reviewed-by: Bill Nottingham <None>
This commit is contained in:
commit
fd60105db3
@ -1767,6 +1767,7 @@ class RunJob(BaseTask):
|
||||
)
|
||||
if branch_override:
|
||||
sync_metafields['scm_branch'] = job.scm_branch
|
||||
sync_metafields['scm_clean'] = True # to accomidate force pushes
|
||||
if 'update_' not in sync_metafields['job_tags']:
|
||||
sync_metafields['scm_revision'] = job_revision
|
||||
local_project_sync = job.project.create_project_update(_eager_fields=sync_metafields)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user