From 1ffa31699d1ee159990315f12e099d351daa5f93 Mon Sep 17 00:00:00 2001 From: EuAndreh Date: Fri, 23 Jul 2021 14:26:32 -0300 Subject: aux/workflow/sign-tarballs.sh: Fix attaching signatures THe documentation is actually incorrect, and the "v" prefix is needed. --- aux/workflow/sign-tarballs.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'aux/workflow') diff --git a/aux/workflow/sign-tarballs.sh b/aux/workflow/sign-tarballs.sh index 168d38d..dcf8a06 100755 --- a/aux/workflow/sign-tarballs.sh +++ b/aux/workflow/sign-tarballs.sh @@ -28,8 +28,8 @@ for tag in $(git tag); do COMMIT="$(git rev-list -n1 "$tag")" if ! echo "$SIGNATURES" | grep -qF "$COMMIT"; then echo "Adding missing signature to $tag" >&2 - git notes --ref=refs/notes/signatures/tar.gz add -f -C "$( - git archive --format tar.gz --prefix "$PROJECT-${tag#v}/" "$tag" | + git notes --ref=refs/notes/signatures/tar.gz add -C "$( + git archive --format tar.gz --prefix "$PROJECT-$tag/" "$tag" | gpg --output - --armor --detach-sign | git hash-object -w --stdin )" "$tag" -- cgit v1.2.3