Fail if dirty (#16839)

* Fail if dirty

* Update check_dirty

* Update text

* Fix comment

* Add -e

* Update dirty script
This commit is contained in:
Paulus Schoutsen authored and GitHub committed 2018-09-25 20:47:51 +02:00
1 parent 7de0e1e39a
commit 5a22e7d211
2 files changed
+9

No files matched your search

+7
View File
@@ -0,0 +1,7 @@
#!/bin/bash
[[ -z $(git ls-files --others --exclude-standard) ]] && exit 0
echo -e '\n***** ERROR\nTests are leaving files behind. Please update the tests to avoid writing any files:'
git ls-files --others --exclude-standard
echo
exit 1