Skip to content

Commit a352d2a

Browse files
committed
Don't GPG sign intermediate commits with github-merge tool
1 parent c7cfd20 commit a352d2a

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)