diff options
author | Max Maischein <corion@corion.net> | 2019-11-26 21:51:48 +0100 |
---|---|---|
committer | Tony Cook <tony@develop-help.com> | 2019-11-30 23:36:49 +1100 |
commit | 579b2f7bf92dfd2e5ed45328d9b26236836770e0 (patch) | |
tree | 4795ce3c83de4072d44ffa7f4938f702233e73ac /t | |
parent | 225968110d775d323dc2ca6dec1bf3db91467ffc (diff) | |
download | perl-579b2f7bf92dfd2e5ed45328d9b26236836770e0.tar.gz |
We don't need to switch branches in git at all
We can directly determine the (authors of) the commits
in a pull request by using the latest branch-off point
between bleadperl and the pull request branch and the
SHA that Github gives us.
Diffstat (limited to 't')
-rw-r--r-- | t/porting/authors.t | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/t/porting/authors.t b/t/porting/authors.t index 0880b28c9b..536cb8807c 100644 --- a/t/porting/authors.t +++ b/t/porting/authors.t @@ -27,8 +27,6 @@ if ( $ENV{TRAVIS} && defined $ENV{TRAVIS_COMMIT_RANGE} ) { elsif( $ENV{GITHUB_ACTIONS} && defined $ENV{GITHUB_HEAD_REF} ) { # Same as above, except for Github Actions # https://help.github.com/en/actions/automating-your-workflow-with-github-actions/using-environment-variables - system(qw( git switch -c ), $ENV{GITHUB_HEAD_REF}); - system(qw( git checkout ), $ENV{GITHUB_HEAD_REF}); # This hardcoded origin/ isn't great, but I'm not sure how to better fix it my $common_ancestor = `git merge-base origin/$ENV{GITHUB_BASE_REF} $ENV{GITHUB_HEAD_REF}`; |