From: Tomi Ollila Date: Tue, 2 Jun 2015 14:43:45 +0000 (+0300) Subject: release-checks: check that git working directory is clean X-Git-Tag: 0.21_rc0~97 X-Git-Url: https://git.notmuchmail.org/git?p=notmuch;a=commitdiff_plain;h=a5a21bbe78725db70153b6bf59c1856de2dcae4d release-checks: check that git working directory is clean 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. --- diff --git a/devel/release-checks.sh b/devel/release-checks.sh index ae02f557..efd0b344 100755 --- a/devel/release-checks.sh +++ b/devel/release-checks.sh @@ -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.