]> git.notmuchmail.org Git - notmuch/blobdiff - devel/release-checks.sh
release-checks: check that git working directory is clean
[notmuch] / devel / release-checks.sh
index ae02f557af23bda8488035367d2ae8eae5f95bb6..efd0b3441f2e9aecd7398cf941c1156eec77ff0d 100755 (executable)
@@ -59,6 +59,17 @@ readonly VERSION
 
 # In the rest of this file, tests collect list of errors to be fixed
 
+echo -n "Checking that git working directory is clean... "
+git_status=`git status --porcelain`
+if [ "$git_status" = '' ]
+then
+       echo Yes.
+else
+       echo No.
+       append_emsg "Git working directory is not clean (git status --porcelain)."
+fi
+unset git_status
+
 verfail ()
 {
        echo No.