summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoe Rayhawk <jrayhawk@omgwallhack.org>2011-05-31 01:41:44 -0700
committerJoe Rayhawk <jrayhawk@omgwallhack.org>2011-05-31 01:41:44 -0700
commitce9bf0e09809dc6fe55c1ddfe909ae40c1c5bbcc (patch)
tree5fa8243b9380692a94ad8fbc8bebacc61a83bcaa
parente3e183e46ecda3a8d388bf8c5ef07f1f4dbc6e97 (diff)
downloadpiny-code-ce9bf0e09809dc6fe55c1ddfe909ae40c1c5bbcc.tar.gz
piny-code-ce9bf0e09809dc6fe55c1ddfe909ae40c1c5bbcc.zip
Piny::Repo->create: mostly fixing check for local remote
-rw-r--r--libpiny/lib/Piny/Repo.pm4
1 files 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 {