From: Matt S Trout Date: Mon, 30 Jan 2012 20:20:05 +0000 (+0000) Subject: refuse to release from not master X-Git-Tag: v0.001000~23 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=50d3c4adcc2ba2e582f1e4d5121c888d2ce2f969;p=p5sagit%2FDistar.git refuse to release from not master --- diff --git a/lib/Distar.pm b/lib/Distar.pm index 2e3aba7..2dedc9f 100644 --- a/lib/Distar.pm +++ b/lib/Distar.pm @@ -61,6 +61,7 @@ sub run_preflight { } for (scalar `git status`) { + /^# On branch master/ || die "Not on master. EEEK"; /Your branch is (behind|ahead of)/ && die "Not synced with upstream"; }