Skip to content
Snippets Groups Projects
Commit 2d664e36 authored by Emanuele Aina's avatar Emanuele Aina
Browse files

pkg-merge-updates: Always produce a merge commit


Avoid fast forward merges, which may happen in specific corner cases,
like a downstream mirroring a repository and making their
`downstream/v2021` branch initially point to `apertis/v2021`: in that
case a pull from `apertis/v2021` would produce a fast-forward and we end
up amending the HEAD of `apertis/v2021` to append the downstream suffix,
rather than amending the merge commit.

Signed-off-by: Emanuele Aina's avatarEmanuele Aina <emanuele.aina@collabora.com>
parent 8d7f401d
No related branches found
No related tags found
2 merge requests!212pkg-merge-updates: Always produce a merge commit,!93WIP: documentation-builder: Rebase on Apertis instead of Debian Buster
Pipeline #246671 passed
......@@ -111,7 +111,7 @@ def main():
print("Downstream is already up to date nothing to do")
return
try:
git('merge', args.upstream, '-m', f'Merge updates from {args.upstream}', '--stat', _fg=True)
git('merge', args.upstream, '--no-ff', '-m', f'Merge updates from {args.upstream}', '--stat', _fg=True)
except Exception as e:
print('Merge failed:')
print(e)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment