[IMP] runbot_merge: pass commit-tree message via stdin

Automating via parameters is riskier as we can hit the CLI
limitations (cf 0a839a4857). Going
through stdin is a lot safer and cleaner when automating, and it's not
much of an imposition here.
This commit is contained in:
Xavier Morel 2024-07-05 13:29:20 +02:00
parent 94cf3e9647
commit 3062f30245

View File

@ -222,6 +222,7 @@ class Repo:
authorship['GIT_COMMITTER_DATE'] = committer[2]
return self.with_config(
input=message,
stdout=subprocess.PIPE,
text=True,
env={
@ -235,7 +236,7 @@ class Repo:
)._run(
'commit-tree',
tree,
'-m', message,
'-F', '-',
*itertools.chain.from_iterable(('-p', p) for p in parents),
)