1 package inc::GitUpToDate;
4 with 'Dist::Zilla::Role::BeforeRelease';
8 chomp(my @ret = qx{git $_[0]});
12 chomp(my $ret = qx{git $_[0]});
20 my $branch = git "symbolic-ref HEAD";
21 die "Could not get the current branch"
24 $branch =~ s{refs/heads/}{};
26 $self->log("Ensuring branch $branch is up to date");
29 my $origin = git "rev-parse origin/$branch";
30 my $head = git "rev-parse HEAD";
32 die "Branch $branch is not up to date (origin: $origin, HEAD: $head)"