Acme-AirRead

 view release on metacpan or  search on metacpan

Changes  view on Meta::CPAN

0.04    Sun Oct 21 01:15:00 2012
        - update inc/Module::Install for perl 5.16

0.03    Sun Sep 30 08:50:00 2012
        - mod DESCRIPTION in POD

0.02    Sun Sep 30 00:30:00 2012
        - mod example code in POD

0.01    Tue Oct 25 02:42:58 2011
        - 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.289 second using v1.01-cache-2.11-cpan-f985c23238c )