diff options
author | Sean Whitton <spwhitton@spwhitton.name> | 2020-03-10 09:02:42 -0700 |
---|---|---|
committer | Sean Whitton <spwhitton@spwhitton.name> | 2020-03-10 09:02:42 -0700 |
commit | 89c554cf3eb44ef1a002fbc077250e26fb2a0aa3 (patch) | |
tree | 465d5cc948b8ca9be4234a16c8e79c325eab2d06 /lib/API/GitForge/Role | |
parent | 0ae4bf932c0808123d9e8149f5c7fedd10f6c2b7 (diff) | |
download | p5-API-GitForge-89c554cf3eb44ef1a002fbc077250e26fb2a0aa3.tar.gz |
pass single argument to methods which take a single argument
Signed-off-by: Sean Whitton <spwhitton@spwhitton.name>
Diffstat (limited to 'lib/API/GitForge/Role')
-rw-r--r-- | lib/API/GitForge/Role/GitForge.pm | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/API/GitForge/Role/GitForge.pm b/lib/API/GitForge/Role/GitForge.pm index bacc293..78d3498 100644 --- a/lib/API/GitForge/Role/GitForge.pm +++ b/lib/API/GitForge/Role/GitForge.pm @@ -104,7 +104,7 @@ fork suitable for adding as a git remote. sub clean_fork { my $self = shift; - my $fork_uri = $self->_ensure_fork(@_); + my $fork_uri = $self->_ensure_fork($_[0]); my $temp = tempdir CLEANUP => 1; my $git = Git::Wrapper->new($temp); @@ -124,7 +124,7 @@ sub clean_fork { # GitLab? for now, just use system() to do the push ourselves system "git", "-C", $git->dir, "push", $fork_uri, "master:gitforge"; - $self->_clean_config_fork(@_); + $self->_clean_config_fork($_[0]); # TODO use API to unprotect all branches in the fork. we still # want to use git-push(1) to delete the branches, rather than |