From: Matt S Trout Date: Wed, 20 Jul 2011 04:54:00 +0000 (+0000) Subject: add MANIFEST check to preflight X-Git-Tag: v0.001000~30 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=41c39fda2584475585c9491ba793b73f1f8788b7;p=p5sagit%2FDistar.git add MANIFEST check to preflight --- diff --git a/lib/Distar.pm b/lib/Distar.pm index e10fcb5..3c465a9 100644 --- a/lib/Distar.pm +++ b/lib/Distar.pm @@ -52,6 +52,10 @@ sub write_manifest_skip { sub run_preflight { system("git fetch"); + for (scalar `make manifest 2>&1 >/dev/null`) { + $_ && die "make manifest changed:\n$_ Go check it and retry"; + } + for (scalar `git status`) { /Your branch is (behind|ahead of)/ && die "Not synced with upstream"; }