Skip to content

Commit

Permalink
prepare-commit: do not exist if indentation fails to go on with sipify
Browse files Browse the repository at this point in the history
  • Loading branch information
3nids committed Apr 30, 2017
1 parent 39f87cc commit 5d5bb34
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions scripts/prepare-commit.sh
Original file line number Diff line number Diff line change
Expand Up @@ -99,13 +99,11 @@ if [ -s "$ASTYLEDIFF" ]; then
else
echo "Files changed (see $ASTYLEDIFF)"
fi
exit 1
else
rm $ASTYLEDIFF
fi



# verify SIP files
SIPIFYDIFF=sipify.$REV.diff
>$SIPIFYDIFF
Expand Down Expand Up @@ -145,6 +143,9 @@ if [[ -s "$SIPIFYDIFF" ]]; then
else
rm $SIPIFYDIFF
fi
if [ -s "$ASTYLEDIFF" ]; then
exit 1
fi

# If there are whitespace errors, print the offending file names and fail.
exec git diff-index --check --cached HEAD --
Expand Down

0 comments on commit 5d5bb34

Please sign in to comment.