Skip to content
This repository was archived by the owner on Jun 20, 2024. It is now read-only.

Commit

Permalink
Correct the advice given on tag mismatch
Browse files Browse the repository at this point in the history
User is now prompted to move the `latest_release` tag in the cloned
repository to match the release process instructions.
  • Loading branch information
awh committed Sep 1, 2015
1 parent 8895043 commit 8e01164
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions bin/release
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -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 [email protected]:$GITHUB_USER/weave latest_release"
echo -e "\tcd $RELEASE_DIR" >&2
echo -e "\tgit push -f [email protected]:$GITHUB_USER/weave latest_release" >&2
exit 1
fi
echo '** Sanity checks OK for publishing tag' $LATEST_TAG as $DOCKERHUB_USER/weave:$VERSION
Expand Down

0 comments on commit 8e01164

Please sign in to comment.