From ce9bf0e09809dc6fe55c1ddfe909ae40c1c5bbcc Mon Sep 17 00:00:00 2001 From: Joe Rayhawk Date: Tue, 31 May 2011 01:41:44 -0700 Subject: Piny::Repo->create: mostly fixing check for local remote --- libpiny/lib/Piny/Repo.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libpiny/lib/Piny/Repo.pm b/libpiny/lib/Piny/Repo.pm index 4e1b767..b5e6800 100644 --- a/libpiny/lib/Piny/Repo.pm +++ b/libpiny/lib/Piny/Repo.pm @@ -481,13 +481,13 @@ sub create { } else { my $valid = 0; eval { - Piny::Repo->new( $remote )->config->_conf; + Piny::Repo->new( $remote )->owner; $valid = 1; }; if( $valid ) { copy( $remote . ".git/config", $repo->path . "/config" ) or die "Config copy failed: $!"; } else { - print( "$remote is not local, unable to copy config file."); + print( "$remote does not appear to be a piny reponame, continuing without copying config file...\n"); } }; } else { -- cgit v1.2.3