From a5a21bbe78725db70153b6bf59c1856de2dcae4d Mon Sep 17 00:00:00 2001 From: Tomi Ollila Date: Tue, 2 Jun 2015 17:43:45 +0300 Subject: [PATCH] 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. --- devel/release-checks.sh | 11 +++++++++++ 1 file changed, 11 insertions(+) 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.