We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ab31b93 commit 914fad2Copy full SHA for 914fad2
lib/Git/PurePerl/Protocol.pm
@@ -5,7 +5,6 @@ use Moose::Util::TypeConstraints;
5
6
use Git::PurePerl::Protocol::Git;
7
use Git::PurePerl::Protocol::SSH;
8
-use Git::PurePerl::Protocol::SSH;
9
10
has 'remote' => ( is => 'ro', isa => 'Str', required => 1 );
11
has 'read_socket' => ( is => 'rw', required => 0 );
@@ -20,7 +19,8 @@ sub connect {
20
19
hostname => $2,
21
project => $3,
22
);
23
- } elsif ($self->remote =~ m{^(?:(.*?)@)?(.*?):(.*)}) {
+ } elsif ($self->remote =~ m{^ssh://(?:(.*?)@)?(.*?)(/.*)}
+ or $self->remote =~ m{^(?:(.*?)@)?(.*?):(.*)}) {
24
Git::PurePerl::Protocol::SSH->meta->rebless_instance(
25
$self,
26
$1 ? (username => $1) : (),
0 commit comments