--
This commit is contained in:
parent
24f3d27984
commit
6b60015c02
9588 changed files with 1149251 additions and 49 deletions
15
node_modules/js-beautify/test/git-status-clear.sh
generated
vendored
Executable file
15
node_modules/js-beautify/test/git-status-clear.sh
generated
vendored
Executable file
|
|
@ -0,0 +1,15 @@
|
|||
echo "Post-build git status check..."
|
||||
echo "Ensuring no changes visible to git have been made to '$*' ..."
|
||||
|
||||
git status $* | grep "nothing to commit.*working directory clean" || {
|
||||
# we should find nothing to commit. If we don't, build has failed.
|
||||
echo "ERROR: Post-build git status check - FAILED."
|
||||
echo "Git status reported changes to non-git-ignore'd files."
|
||||
echo "TO REPRO: Run 'git status $*'. The use git gui or git diff to see what was changed during the build."
|
||||
echo "TO FIX: Amend your commit and rebuild. Repeat until git status reports no changes both before and after the build."
|
||||
echo "OUTPUT FOR 'git status $*':"
|
||||
git status $*
|
||||
exit 1
|
||||
}
|
||||
echo "Post-build git status check - Succeeded."
|
||||
exit 0
|
||||
Loading…
Reference in a new issue