From bf07e6197761a81a13d1aeb292f7026ef812555b Mon Sep 17 00:00:00 2001 From: Sean Whitton Date: Tue, 10 Mar 2020 09:20:52 -0700 Subject: refer to the fork consistently with $fork_uri Signed-off-by: Sean Whitton --- lib/API/GitForge/Role/GitForge.pm | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/API/GitForge/Role/GitForge.pm b/lib/API/GitForge/Role/GitForge.pm index 2f282ae..52760ff 100644 --- a/lib/API/GitForge/Role/GitForge.pm +++ b/lib/API/GitForge/Role/GitForge.pm @@ -109,9 +109,8 @@ sub clean_fork { my $temp = tempdir CLEANUP => 1; my $git = Git::Wrapper->new($temp); $git->init; - $git->remote(qw(add fork), $fork_uri); my @fork_branches - = map { m#refs/heads/#; $' } $git->ls_remote(qw(--heads fork)); + = map { m#refs/heads/#; $' } $git->ls_remote("--heads", $fork_uri); return $fork_uri if grep /\Agitforge\z/, @fork_branches; open my $fh, ">", catfile $temp, "README.md"; -- cgit v1.2.3