[autobuilder-helper,warrior,25/41] scripts/send-qa-email: fix bug in git push logic for yocto-testresults
Submitted by Richard Purdie on Sept. 10, 2020, 12:25 p.m.
|
Patch ID: 176306
Details
Commit Message
@@ -77,10 +77,10 @@ if 'poky' in repos and os.path.exists(resulttool) and args.results_dir:
extraopts = None
subprocess.check_call([resulttool, "store", args.results_dir, tempdir])
- if basebranch:
+ if comparebranch:
subprocess.check_call(["git", "push", "--all", "--force"], cwd=tempdir)
subprocess.check_call(["git", "push", "--tags", "--force"], cwd=tempdir)
- else:
+ elif basebranch:
subprocess.check_call(["git", "push", "--all"], cwd=tempdir)
subprocess.check_call(["git", "push", "--tags"], cwd=tempdir)