Skip to content

Commit

Permalink
fix use of git-remote show to work offline
Browse files Browse the repository at this point in the history
  • Loading branch information
fayland committed May 14, 2009
1 parent 757384c commit 1b63602
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
3 changes: 3 additions & 0 deletions Changes
@@ -1,5 +1,8 @@
Revision history for Perl extension Module::Install::Repository

0.05
- fix use of git-remote show to work offline (rjbs, fayland)

0.04 Sun May 10 17:23:39 PDT 2009
- Make this module compatible to Perl back in 5.5
(Thank to Yappo++)
Expand Down
4 changes: 2 additions & 2 deletions lib/Module/Install/Repository.pm
Expand Up @@ -3,7 +3,7 @@ package Module::Install::Repository;
use strict;
use 5.005;
use vars qw($VERSION);
$VERSION = '0.04';
$VERSION = '0.05';

use base qw(Module::Install::Base);

Expand All @@ -23,7 +23,7 @@ sub auto_set_repository {
sub _find_repo {
if (-e ".git") {
# TODO support remote besides 'origin'?
if (`git remote show origin` =~ /URL: (.*)$/m) {
if (`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/!;
Expand Down

0 comments on commit 1b63602

Please sign in to comment.