From b27961e48d83203e699905b339d2f290c8379cc2 Mon Sep 17 00:00:00 2001 From: Marius Vlad Date: Wed, 14 Dec 2022 14:33:42 +0200 Subject: [PATCH] release.sh: Don't push *all* tags Rather than trying to push all possible tags just push the one created for that release. Signed-off-by: Marius Vlad --- release.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/release.sh b/release.sh index 697bf40..8e843f5 100755 --- a/release.sh +++ b/release.sh @@ -49,6 +49,9 @@ sha256="$(cd $build_dir/meson-dist && sha256sum $archive_name)" sha512="$(cd $build_dir/meson-dist && sha512sum $archive_name)" archive_url="https://gitlab.freedesktop.org/wayland/$name/-/releases/$version/downloads/$archive_name" announce_path="$build_dir/meson-dist/$name-$version-announce.eml" +current_branch=$(git branch --show-current) +remote_name=$(git config --get branch.${current_branch}.remote) + cat >"$announce_path" < Subject: [ANNOUNCE] $name $version @@ -72,5 +75,5 @@ if [ "$answer" != "y" ]; then fi git tag -s -m "$version" "$version" -git push --tags +git push "$remote_name" "$version" glab release create "$version" "$archive_path"* --notes ""