diff options
author | Leif Johansson <leifj@sunet.se> | 2015-01-27 14:45:56 +0100 |
---|---|---|
committer | Leif Johansson <leifj@sunet.se> | 2015-01-27 14:45:56 +0100 |
commit | d178d45c3add03be985701137a6d83f379bdaabf (patch) | |
tree | 95fd2da9320594cd85e4975ebd57b1a47a2d78a2 /bump-tag | |
parent | 25449bf898f3e2759610f74d416754fae50309eb (diff) | |
parent | 3d8a9e3940df555ec11d5a6bc9f8da0407f8825f (diff) |
Merge branch 'master' of git.nordu.net:sunet-opssunet-ops-2015-01-27-v02
Diffstat (limited to 'bump-tag')
-rwxr-xr-x | bump-tag | 14 |
1 files changed, 12 insertions, 2 deletions
@@ -4,13 +4,22 @@ set -e test -f cosmos.conf && . ./cosmos.conf +echo "Fetching any updates from server:" +git pull +echo "" + deftag=`basename $PWD` tagpfx=${tag:="$deftag"} last_tag=`git tag -l "${tagpfx}-*"|sort|tail -1` -git tag -v $last_tag +echo "Verifying last tag $last_tag:" +(git tag -v $last_tag | grep ^gpg:) || true +# again to not mask exit status of git with grep +git tag -v $last_tag > /dev/null 2>&1 +echo "" +echo "Differences between tag $last_tag and what you are about to sign:" PAGER=cat git diff $last_tag..master iter=1 @@ -27,7 +36,8 @@ while test -z "$ok"; do esac done -echo using new tag $this_tag +echo "" +echo "Using new tag $this_tag" echo ONLY SIGN IF YOU APPROVE OF VERIFICATION AND DIFF ABOVE # GITTAGEXTRA is for putting things like "-u 2117364A" |