diff --git a/bin/release b/bin/release index f6d82e1083..5830c6acc7 100755 --- a/bin/release +++ b/bin/release @@ -190,7 +190,10 @@ publish() { echo "** Release draft detected" echo "== Sanity checks" if ! [ $(git rev-list -1 $LATEST_TAG) == $(git rev-list -1 latest_release) ]; then - echo -e "\u2757 The tag latest_release does not point to the same commit as $LATEST_TAG" + echo -e "\u2757 The tag latest_release does not point to the same commit as $LATEST_TAG" >&2 + echo "You may need to" >&2 + echo -e "\tcd $RELEASE_DIR" >&2 + echo -e "\tgit tag -af latest_release $LATEST_TAG" >&2 exit 1 fi @@ -199,8 +202,8 @@ publish() { echo -e "\u2757 Tag latest_release is not on GitHub, or is not the same as the local tag" >&2 echo -e "\thttps://github.com/$GITHUB_USER/weave/tags" >&2 echo "You may need to" >&2 - echo -e "\tgit tag -af latest_release" - echo -e "\tgit push -f git@github.com:$GITHUB_USER/weave latest_release" + echo -e "\tcd $RELEASE_DIR" >&2 + echo -e "\tgit push -f git@github.com:$GITHUB_USER/weave latest_release" >&2 exit 1 fi echo '** Sanity checks OK for publishing tag' $LATEST_TAG as $DOCKERHUB_USER/weave:$VERSION