mirror of
https://github.com/OpenVPN/openvpn.git
synced 2026-05-28 04:03:29 -04:00
gerrit-send-mail.py: Add patch version to subject
Change-Id: I75403dfbebeeb4d667c7dd6b8276c6a4f2ae4842 Signed-off-by: Frank Lichtenheld <frank@lichtenheld.com> Acked-by: Gert Doering <gert@greenie.muc.de> Message-Id: <20231025122039.1031284-1-frank@lichtenheld.com> URL: https://www.mail-archive.com/openvpn-devel@lists.sourceforge.net/msg27296.html Signed-off-by: Gert Doering <gert@greenie.muc.de>
This commit is contained in:
parent
c827f9d83a
commit
ba5ed490d3
1 changed files with 2 additions and 1 deletions
|
|
@ -108,8 +108,9 @@ Acked-by according to Gerrit (reflected above):
|
|||
+ patch_text[comment_start:]
|
||||
)
|
||||
filename = f"gerrit-{args.changeid}-{details['revision']}.patch"
|
||||
patch_text_final = patch_text_mod.replace("Subject: [PATCH]", f"Subject: [PATCH v{details['revision']}]")
|
||||
with open(filename, "w") as patch_file:
|
||||
patch_file.write(patch_text_mod)
|
||||
patch_file.write(patch_text_final)
|
||||
print("send with:")
|
||||
print(f"git send-email --in-reply-to {details['msg_id']} {filename}")
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue