From: Karen Etheridge Date: Sun, 18 Aug 2013 22:52:51 +0000 (-0700) Subject: make date line of Changes file CPAN::Changes::Spec-compliant X-Git-Tag: v0.002000~37 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=1e5e17ef3e6c0407594d4084dac875d3e8855b73;p=p5sagit%2FDistar.git make date line of Changes file CPAN::Changes::Spec-compliant --- diff --git a/lib/Distar.pm b/lib/Distar.pm index 4481573..8c36df6 100644 --- a/lib/Distar.pm +++ b/lib/Distar.pm @@ -93,7 +93,7 @@ sub run_preflight { "%i-%02i-%02i", (localtime)[5]+1900, (localtime)[4]+1, (localtime)[3] ); my @cached = grep /^\+/, `git diff --cached -U0`; - @cached > 0 or die "Please add:\n\n$version - $ymd\n\nto Changes stage Changes (git add Changes)"; + @cached > 0 or die "Please add:\n\n$version $ymd\n\nto Changes stage Changes (git add Changes)"; @cached == 2 or die "Pre-commit Changes not just Changes line"; $cached[0] =~ /^\+\+\+ .\/Changes\n/ or die "Changes not changed"; $cached[1] eq "+$version - $ymd\n" or die "Changes new line should be: \n\n$version - $ymd\n ";