From 9b498838468346a698d147f15c6bcd6ba527c0cb Mon Sep 17 00:00:00 2001 From: Tomi Ollila Date: Tue, 2 Jun 2015 17:43:45 +0300 Subject: [PATCH] [PATCH] release-checks: check that git working directory is clean --- 41/4304650938f539e5f74b1cf54350875f6e703c | 75 +++++++++++++++++++++++ 1 file changed, 75 insertions(+) create mode 100644 41/4304650938f539e5f74b1cf54350875f6e703c diff --git a/41/4304650938f539e5f74b1cf54350875f6e703c b/41/4304650938f539e5f74b1cf54350875f6e703c new file mode 100644 index 000000000..083dfd3b1 --- /dev/null +++ b/41/4304650938f539e5f74b1cf54350875f6e703c @@ -0,0 +1,75 @@ +Return-Path: +X-Original-To: notmuch@notmuchmail.org +Delivered-To: notmuch@notmuchmail.org +Received: from localhost (localhost [127.0.0.1]) + by arlo.cworth.org (Postfix) with ESMTP id 432B46DE13A3 + for ; Tue, 2 Jun 2015 07:44:19 -0700 (PDT) +X-Virus-Scanned: Debian amavisd-new at cworth.org +X-Spam-Flag: NO +X-Spam-Score: 0.419 +X-Spam-Level: +X-Spam-Status: No, score=0.419 tagged_above=-999 required=5 tests=[AWL=0.959, + RP_MATCHES_RCVD=-0.55, T_HEADER_FROM_DIFFERENT_DOMAINS=0.01] + autolearn=disabled +Received: from arlo.cworth.org ([127.0.0.1]) + by localhost (arlo.cworth.org [127.0.0.1]) (amavisd-new, port 10024) + with ESMTP id 0EWr8PuW9TlJ for ; + Tue, 2 Jun 2015 07:44:16 -0700 (PDT) +Received: from guru.guru-group.fi (guru.guru-group.fi [46.183.73.34]) + by arlo.cworth.org (Postfix) with ESMTP id 7340A6DE138F + for ; Tue, 2 Jun 2015 07:44:16 -0700 (PDT) +Received: by guru.guru-group.fi (Postfix, from userid 501) + id CCC8A100090; Tue, 2 Jun 2015 17:43:51 +0300 (EEST) +From: Tomi Ollila +To: notmuch@notmuchmail.org +Subject: [PATCH] release-checks: check that git working directory is clean +Date: Tue, 2 Jun 2015 17:43:45 +0300 +Message-Id: <1433256225-13531-1-git-send-email-tomi.ollila@iki.fi> +X-Mailer: git-send-email 2.0.0 +Cc: tomi.ollila@iki.fi +X-BeenThere: notmuch@notmuchmail.org +X-Mailman-Version: 2.1.18 +Precedence: list +List-Id: "Use and development of the notmuch mail system." + +List-Unsubscribe: , + +List-Archive: +List-Post: +List-Help: +List-Subscribe: , + +X-List-Received-Date: Tue, 02 Jun 2015 14:44:19 -0000 + +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. +--- + devel/release-checks.sh | 11 +++++++++++ + 1 file changed, 11 insertions(+) + +diff --git a/devel/release-checks.sh b/devel/release-checks.sh +index ae02f557af23..eceea6165b5b 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 --ignored` ++if [ "$git_status" = '' ] ++then ++ echo Yes. ++else ++ echo No. ++ append_emsg "Git working directory is not clean (git status --porcelain --ignored)." ++fi ++unset git_status ++ + verfail () + { + echo No. +-- +2.0.0 + -- 2.26.2