]> git.notmuchmail.org Git - notmuch/commitdiff
release-checks: check that git working directory is clean
authorTomi Ollila <tomi.ollila@iki.fi>
Tue, 2 Jun 2015 14:43:45 +0000 (17:43 +0300)
committerDavid Bremner <david@tethera.net>
Tue, 9 Jun 2015 17:33:22 +0000 (19:33 +0200)
Before release check that there are no uncommitted changes and
that there are no files in working directory that possibly should
have been added to the repository.

Amended by db: remove --ignored, since that seems like too much
trouble.

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.