X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=inc%2FGitUpToDate.pm;h=2f6c9ea445012183fc88c2121d1eec257838d801;hb=33012ea9840cba8b01fa655898b9f6055ed51e34;hp=35020e7ae40c334a6811cb7e0ef132f839123b90;hpb=32f47d4c5dddf9df3a7007e8f6b690014b117a2f;p=gitmo%2FMoose.git diff --git a/inc/GitUpToDate.pm b/inc/GitUpToDate.pm index 35020e7..2f6c9ea 100644 --- a/inc/GitUpToDate.pm +++ b/inc/GitUpToDate.pm @@ -1,7 +1,7 @@ package inc::GitUpToDate; use Moose; -with 'Dist::Zilla::Role::BeforeRelease'; +with 'Dist::Zilla::Role::BeforeBuild'; sub git { if (wantarray) { @@ -14,9 +14,11 @@ sub git { } } -sub before_release { +sub before_build { my $self = shift; + return unless $ENV{DZIL_RELEASING}; + my $branch = git "symbolic-ref HEAD"; die "Could not get the current branch" unless $branch;