Skip to content

Commit 26a0d07

Browse files
committed
Merge #16130: Don't GPG sign intermediate commits with github-merge tool
a352d2a Don't GPG sign intermediate commits with github-merge tool (Steven Roose) Pull request description: When you don't have an unencrypted key and you have git configured to always sign all commits, you have to sign three times instead of one. ACKs for commit a352d2: MarcoFalke: utACK a352d2a Tree-SHA512: f5a1c0868c42de2b5df45126e1e94b4a7d88b041d179244228bb7b02d43d41f565388eb1052a097ab0666fc6003f8453b9e283801fcb33aef47f412b72ba9fb6
2 parents fc6cbc3 + a352d2a commit 26a0d07

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

contrib/devtools/github-merge.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -283,7 +283,7 @@ def main():
283283
message += '\n\nPull request description:\n\n ' + body.replace('\n', '\n ') + '\n'
284284
message += get_acks_from_comments(head_commit=subprocess.check_output([GIT,'log','-1','--pretty=format:%H',head_branch]).decode('utf-8')[:6], comments=comments)
285285
try:
286-
subprocess.check_call([GIT,'merge','-q','--commit','--no-edit','--no-ff','-m',message.encode('utf-8'),head_branch])
286+
subprocess.check_call([GIT,'merge','-q','--commit','--no-edit','--no-ff','--no-gpg-sign','-m',message.encode('utf-8'),head_branch])
287287
except subprocess.CalledProcessError:
288288
print("ERROR: Cannot be merged cleanly.",file=stderr)
289289
subprocess.check_call([GIT,'merge','--abort'])
@@ -307,7 +307,7 @@ def main():
307307
print("ERROR: Unable to compute tree hash")
308308
sys.exit(4)
309309
try:
310-
subprocess.check_call([GIT,'commit','--amend','-m',message.encode('utf-8')])
310+
subprocess.check_call([GIT,'commit','--amend','--no-gpg-sign','-m',message.encode('utf-8')])
311311
except subprocess.CalledProcessError:
312312
print("ERROR: Cannot update message.", file=stderr)
313313
sys.exit(4)

0 commit comments

Comments
 (0)