--- /dev/null
+Return-Path: <too@guru-group.fi>\r
+X-Original-To: notmuch@notmuchmail.org\r
+Delivered-To: notmuch@notmuchmail.org\r
+Received: from localhost (localhost [127.0.0.1])\r
+ by arlo.cworth.org (Postfix) with ESMTP id 432B46DE13A3\r
+ for <notmuch@notmuchmail.org>; Tue, 2 Jun 2015 07:44:19 -0700 (PDT)\r
+X-Virus-Scanned: Debian amavisd-new at cworth.org\r
+X-Spam-Flag: NO\r
+X-Spam-Score: 0.419\r
+X-Spam-Level: \r
+X-Spam-Status: No, score=0.419 tagged_above=-999 required=5 tests=[AWL=0.959, \r
+ RP_MATCHES_RCVD=-0.55, T_HEADER_FROM_DIFFERENT_DOMAINS=0.01]\r
+ autolearn=disabled\r
+Received: from arlo.cworth.org ([127.0.0.1])\r
+ by localhost (arlo.cworth.org [127.0.0.1]) (amavisd-new, port 10024)\r
+ with ESMTP id 0EWr8PuW9TlJ for <notmuch@notmuchmail.org>;\r
+ Tue, 2 Jun 2015 07:44:16 -0700 (PDT)\r
+Received: from guru.guru-group.fi (guru.guru-group.fi [46.183.73.34])\r
+ by arlo.cworth.org (Postfix) with ESMTP id 7340A6DE138F\r
+ for <notmuch@notmuchmail.org>; Tue, 2 Jun 2015 07:44:16 -0700 (PDT)\r
+Received: by guru.guru-group.fi (Postfix, from userid 501)\r
+ id CCC8A100090; Tue, 2 Jun 2015 17:43:51 +0300 (EEST)\r
+From: Tomi Ollila <tomi.ollila@iki.fi>\r
+To: notmuch@notmuchmail.org\r
+Subject: [PATCH] release-checks: check that git working directory is clean\r
+Date: Tue, 2 Jun 2015 17:43:45 +0300\r
+Message-Id: <1433256225-13531-1-git-send-email-tomi.ollila@iki.fi>\r
+X-Mailer: git-send-email 2.0.0\r
+Cc: tomi.ollila@iki.fi\r
+X-BeenThere: notmuch@notmuchmail.org\r
+X-Mailman-Version: 2.1.18\r
+Precedence: list\r
+List-Id: "Use and development of the notmuch mail system."\r
+ <notmuch.notmuchmail.org>\r
+List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
+ <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
+List-Archive: <http://notmuchmail.org/pipermail/notmuch/>\r
+List-Post: <mailto:notmuch@notmuchmail.org>\r
+List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
+List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
+ <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
+X-List-Received-Date: Tue, 02 Jun 2015 14:44:19 -0000\r
+\r
+Before release check that there are no uncommitted changes and\r
+that there are no files in working directory that possibly should\r
+have been added to the repository.\r
+---\r
+ devel/release-checks.sh | 11 +++++++++++\r
+ 1 file changed, 11 insertions(+)\r
+\r
+diff --git a/devel/release-checks.sh b/devel/release-checks.sh\r
+index ae02f557af23..eceea6165b5b 100755\r
+--- a/devel/release-checks.sh\r
++++ b/devel/release-checks.sh\r
+@@ -59,6 +59,17 @@ readonly VERSION\r
+ \r
+ # In the rest of this file, tests collect list of errors to be fixed\r
+ \r
++echo -n "Checking that git working directory is clean... "\r
++git_status=`git status --porcelain --ignored`\r
++if [ "$git_status" = '' ]\r
++then\r
++ echo Yes.\r
++else\r
++ echo No.\r
++ append_emsg "Git working directory is not clean (git status --porcelain --ignored)."\r
++fi\r
++unset git_status\r
++\r
+ verfail ()\r
+ {\r
+ echo No.\r
+-- \r
+2.0.0\r
+\r