A platform for community discussion. Free, open, simple.
DEV: Set `gpgsign=false` at repo init in release specs (#38535)
Loïc Guitaut3837000fe889
diff --git a/spec/tasks/release_spec.rb b/spec/tasks/release_spec.rbindex ffcc381abeb..b2688b4950f 100644--- a/spec/tasks/release_spec.rb+++ b/spec/tasks/release_spec.rb@@ -52,6 +52,7 @@ RSpec.describe "tasks/release" doFile.write("versions.json", JSON.pretty_generate(versions))git "init"+ git "config", "commit.gpgsign", "false"git "checkout", "-b", "main"git "add", "."git "commit", "-m", "Initial commit"@@ -482,15 +483,15 @@ RSpec.describe "tasks/release" dogit "checkout", "-b", "security-fix-one"File.write("firstfile.txt", "contents")git "add", "firstfile.txt"- git "-c", "commit.gpgsign=false", "commit", "-m", "security fix one, commit one"+ git "commit", "-m", "security fix one, commit one"File.write("secondfile.txt", "contents")git "add", "secondfile.txt"- git "-c", "commit.gpgsign=false", "commit", "-m", "security fix one, commit two"+ git "commit", "-m", "security fix one, commit two"git "checkout", "main"git "checkout", "-b", "security-fix-two"File.write("somefile.txt", "contents")git "add", "somefile.txt"- git "-c", "commit.gpgsign=false", "commit", "-m", "security fix two"+ git "commit", "-m", "security fix two"endend@@ -553,14 +554,14 @@ RSpec.describe "tasks/release" dogit "checkout", "-b", base_branchFile.write("lib/version.rb", fake_version_rb("2025.6.0"))git "add", "lib/version.rb"- git "-c", "commit.gpgsign=false", "commit", "-m", "Initial release branch commit"+ git "commit", "-m", "Initial release branch commit"git "config", "receive.denyCurrentBranch", "ignore"git "checkout", "main"git "checkout", "-b", "security-fix-for-release-branch"File.write("releasefile.txt", "contents")git "add", "releasefile.txt"- git "-c", "commit.gpgsign=false", "commit", "-m", "security fix for release branch"+ git "commit", "-m", "security fix for release branch"endDir.chdir(local_path) { git "fetch", "origin" }