Permalink
Browse files

RELEASE SCRIPT ONLY: Make sure that the commits which are local are n…

…ot waiting to be pushed
  • Loading branch information...
1 parent cd8abd4 commit 50a78cbc354ed77d8c47c71319251a04da28d860 @tomjenkinson tomjenkinson committed Jun 27, 2017
Showing with 13 additions and 0 deletions.
  1. +13 −0 narayana-release-process.sh
@@ -71,6 +71,19 @@ git fetch upstream --tags
git tag | grep $CURRENT
if [[ $? != 0 ]]
then
+ set +e
+ git status | grep "nothing to commit, working directory is clean"
+ if [[ $? != 0 ]]
+ then
+ git status
+ exit
+ fi
+ git status | grep "ahead"
+ if [[ $? != 0 ]]
+ then
+ git status
+ exit
+ fi
set -e
(cd ./scripts/ ; ./pre-release.sh $CURRENT $NEXT)
git fetch upstream --tags

0 comments on commit 50a78cb

Please sign in to comment.