Skip to content

Commit c60e9fc

Browse files
committed
please.sh tag_git: if a GPG key was configured, sign the tag
Signed-off-by: Johannes Schindelin <[email protected]>
1 parent 7d92750 commit c60e9fc

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

please.sh

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2050,7 +2050,10 @@ tag_git () { #
20502050
"$(sed -n '1s/.*\(Git for Windows v[^ ]*\).*/\1/p' \
20512051
<"$build_extra_dir/ReleaseNotes.md")" "$notes")" &&
20522052
(cd "$git_src_dir" &&
2053-
git tag -m "$tag_message" -a "$nextver" git-for-windows/master) ||
2053+
signopt= &&
2054+
if git config user.signingkey >/dev/null; then signopt=-s; fi &&
2055+
git tag -m "$tag_message" -a $signopt \
2056+
"$nextver" git-for-windows/master) ||
20542057
die "Could not tag %s in %s\n" "$nextver" "$git_src_dir"
20552058

20562059
echo "Created tag $nextver" >&2

0 commit comments

Comments
 (0)