mirror of
https://github.com/odoo/runbot.git
synced 2025-03-27 13:25:47 +07:00
[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:
parent
94cf3e9647
commit
3062f30245
@ -222,6 +222,7 @@ class Repo:
|
|||||||
authorship['GIT_COMMITTER_DATE'] = committer[2]
|
authorship['GIT_COMMITTER_DATE'] = committer[2]
|
||||||
|
|
||||||
return self.with_config(
|
return self.with_config(
|
||||||
|
input=message,
|
||||||
stdout=subprocess.PIPE,
|
stdout=subprocess.PIPE,
|
||||||
text=True,
|
text=True,
|
||||||
env={
|
env={
|
||||||
@ -235,7 +236,7 @@ class Repo:
|
|||||||
)._run(
|
)._run(
|
||||||
'commit-tree',
|
'commit-tree',
|
||||||
tree,
|
tree,
|
||||||
'-m', message,
|
'-F', '-',
|
||||||
*itertools.chain.from_iterable(('-p', p) for p in parents),
|
*itertools.chain.from_iterable(('-p', p) for p in parents),
|
||||||
)
|
)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user