Skip to content

Commit cfe7618

Browse files
committed
contest: gh: remember to abort the merge
Netdev foundation NIPA was mis-configured (missing git config to auto-stage rerere), the runner would fail to check out the tree after a failed merge. Make sure we clean up failed merges. Signed-off-by: Jakub Kicinski <[email protected]>
1 parent ed179c7 commit cfe7618

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

contest/remote/gh.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -157,6 +157,7 @@ def test_run(binfo, rinfo, cbarg, config, start):
157157
# If rerere fixed it, just commit
158158
res = subprocess.run('git diff -s --exit-code', cwd=tree_path, shell=True)
159159
if res.returncode != 0:
160+
subprocess.run('git merge --abort', cwd=tree_path, shell=True)
160161
return [{'test': config.get('executor', 'test'),
161162
'group': config.get('executor', 'group'),
162163
'result': 'skip', 'link': config.get('gh', 'link')}]

0 commit comments

Comments
 (0)