force checkout and fetch
This commit is contained in:
parent
e162059f1d
commit
fe2e75da63
@ -20,7 +20,7 @@
|
|||||||
in {
|
in {
|
||||||
pr-status = pkgs.perlPackages.buildPerlPackage {
|
pr-status = pkgs.perlPackages.buildPerlPackage {
|
||||||
pname = "pr-status";
|
pname = "pr-status";
|
||||||
version = "v0.0.2";
|
version = "v0.0.3";
|
||||||
src = ./.;
|
src = ./.;
|
||||||
buildInputs = with pkgs; [ makeWrapper ];
|
buildInputs = with pkgs; [ makeWrapper ];
|
||||||
propagatedBuildInputs = with pkgs.perlPackages; [
|
propagatedBuildInputs = with pkgs.perlPackages; [
|
||||||
|
@ -47,8 +47,8 @@ Mojo::IOLoop->recurring(
|
|||||||
|
|
||||||
sub get_commit {
|
sub get_commit {
|
||||||
my $pr = shift;
|
my $pr = shift;
|
||||||
$repo->command( 'fetch', 'origin', "pull/${pr}/head:pr-status-${pr}" );
|
$repo->command( 'fetch', '-f', 'origin', "pull/${pr}/head:pr-status-${pr}" );
|
||||||
$repo->command( 'checkout', "pr-status-$pr" );
|
$repo->command( 'checkout', '-f', "pr-status-$pr" );
|
||||||
my $commit = $repo->command( 'rev-parse', 'HEAD' );
|
my $commit = $repo->command( 'rev-parse', 'HEAD' );
|
||||||
my $log = $repo->command( 'log', '-n', '1', '--pretty=format:%s' );
|
my $log = $repo->command( 'log', '-n', '1', '--pretty=format:%s' );
|
||||||
$repo->command( 'checkout', 'master' );
|
$repo->command( 'checkout', 'master' );
|
||||||
|
Loading…
Reference in New Issue
Block a user