Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Make merge_pull_request.pl default to parrot.git, but allow other rep…
…os to be specified
  • Loading branch information
leto committed May 2, 2011
1 parent 7c64447 commit 0e40ecf
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions tools/dev/merge_pull_request.pl
Expand Up @@ -28,8 +28,10 @@ =head1 SYNOPSIS
=cut

my $num = shift or die "Must give a pull request number to merge!";
merge_pull_request($num);
my $num = shift or die "Must give a pull request number to merge!";
my $repo = shift || 'parrot';

merge_pull_request($num, $repo);

sub merge_pull_request {
my ($num) = @_;
Expand All @@ -38,8 +40,8 @@ sub merge_pull_request {
my $status = qx{ git status -u };
system("git checkout -b pull_request_$num");

my $stashed = stash_if_necessary('parrot', $status);
system("wget --no-check-certificate https://github.com/parrot/parrot/pull/$num.patch");
my $stashed = stash_if_necessary($repo, $status);
system("wget --no-check-certificate https://github.com/parrot/$repo/pull/$num.patch");
system("git am --signoff $num.patch");
}

Expand Down

0 comments on commit 0e40ecf

Please sign in to comment.