Skip to content

Commit

Permalink
Tests were reversed: remember that sh "if" treats 0 as true
Browse files Browse the repository at this point in the history
  • Loading branch information
mernst committed Jan 1, 2016
1 parent 8d039bc commit eb3098f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions bin/make-plume-release
Original file line number Diff line number Diff line change
Expand Up @@ -30,17 +30,17 @@ if ! git status 2>&1 > /dev/null; then
echo "$PWD is not a Git repository."
fi

if git diff --exit-code; then
if ! git diff --exit-code; then
echo "Unstaged local changes; stage, commit, and push changes before making a release."
exit 1
fi

if git diff --cached --exit-code; then
if ! git diff --cached --exit-code; then
echo "Staged but uncommited local changes; stage and push changes before making a release."
exit 1
fi

if git log --branches --not --remotes &> /dev/null; then
if ! git log --branches --not --remotes &> /dev/null; then
echo "Unpushed changes; push changes before making a release."
exit 1
fi
Expand Down

0 comments on commit eb3098f

Please sign in to comment.