From 89c554cf3eb44ef1a002fbc077250e26fb2a0aa3 Mon Sep 17 00:00:00 2001 From: Sean Whitton Date: Tue, 10 Mar 2020 09:02:42 -0700 Subject: pass single argument to methods which take a single argument Signed-off-by: Sean Whitton --- lib/API/GitForge/Role/GitForge.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib') 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 -- cgit v1.2.3