Acme-Collector64
view release on metacpan or search on metacpan
Revision history for Perl extension Acme::Collector64
0.02
- add test case
- refactoring
0.01
- original version
inc/Module/Install/Repository.pm view on Meta::CPAN
$self->repository($repo);
} else {
warn "Cannot determine repository URL\n";
}
}
sub _find_repo {
my ($execute) = @_;
if (-e ".git") {
# TODO support remote besides 'origin'?
if ($execute->('git remote show -n origin') =~ /URL: (.*)$/m) {
# XXX Make it public clone URL, but this only works with github
my $git_url = $1;
$git_url =~ s![\w\-]+\@([^:]+):!git://$1/!;
return $git_url;
} elsif ($execute->('git svn info') =~ /URL: (.*)$/m) {
return $1;
}
} elsif (-e ".svn") {
if (`svn info` =~ /URL: (.*)$/m) {
return $1;
( run in 0.322 second using v1.01-cache-2.11-cpan-1c8d708658b )