aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rwxr-xr-xscripts/release/release.sh4
-rwxr-xr-xscripts/release/release_test.sh6
2 files changed, 8 insertions, 2 deletions
diff --git a/scripts/release/release.sh b/scripts/release/release.sh
index 9b4e148384..c0c5f7c8a5 100755
--- a/scripts/release/release.sh
+++ b/scripts/release/release.sh
@@ -125,7 +125,7 @@ ${version_info}
${relnotes}
EOF
- git commit -F ${tmpfile} --no-edit --author "${RELEASE_AUTHOR}"
+ git commit --no-verify -F ${tmpfile} --no-edit --author "${RELEASE_AUTHOR}"
}
function apply_cherry_picks() {
@@ -246,7 +246,7 @@ function do_release() {
trap 'rm -f ${tmpfile}' EXIT
git_commit_msg ${branch} >${tmpfile}
git add ${changelog_path}
- git commit -F ${tmpfile} --no-edit --author "${RELEASE_AUTHOR}"
+ git commit --no-verify -F ${tmpfile} --no-edit --author "${RELEASE_AUTHOR}"
rm -f ${tmpfile}
trap - EXIT
diff --git a/scripts/release/release_test.sh b/scripts/release/release_test.sh
index 2d28c8f99f..deb812654b 100755
--- a/scripts/release/release_test.sh
+++ b/scripts/release/release_test.sh
@@ -236,10 +236,16 @@ EOF
expect_log "Baseline: 2464526"
# Abandon it
abandon v2
+ # Add a commit hook to test if it is ignored
+ cat <<'EOF' >.git/hooks/commit-msg
+echo HOOK-SHOULD-BE-IGNORED >>$1
+EOF
+ chmod +x .git/hooks/commit-msg
# Re-create release
create v2 2464526
expect_log "Release v2"
expect_log "Baseline: 2464526"
+ expect_not_log "HOOK-SHOULD-BE-IGNORED"
# Push
push
# Abandon it