From bebc486bb39f2cbae3133716e036a611599f3aa1 Mon Sep 17 00:00:00 2001 From: Hector Sanjuan Date: Thu, 29 Mar 2018 13:47:33 +0200 Subject: [PATCH] Fix release changelog when having release candidates. License: MIT Signed-off-by: Hector Sanjuan --- release.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/release.sh b/release.sh index 85b72a85..bb6c76fd 100755 --- a/release.sh +++ b/release.sh @@ -13,7 +13,7 @@ make gx-clean sed -i "s/const Version.*$/const Version = \"$version\"/" version.go sed -i "s/const Version.*$/const Version = \"$version\"/" ipfs-cluster-ctl/main.go git commit -S -a -m "Release $version" -lastver=`git tag -l | grep -E 'v[0-9]+\.[0-9]+\.[0-9]+' | tail -n 1` +lastver=`git tag -l | grep -E 'v[0-9]+\.[0-9]+\.[0-9]+$' | tail -n 1` echo "Tag for Release ${version}" > tag_annotation echo >> tag_annotation git log --pretty=oneline ${lastver}..HEAD >> tag_annotation