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 d2ffe1e commit 8b84623Copy full SHA for 8b84623
lib/Gitpan/Git.pm
@@ -193,6 +193,7 @@ method remotes() {
193
194
method remote( Str $name, Str $action = "push" ) {
195
my $remote = $self->remotes->{$name};
196
+ return unless $remote;
197
return $action eq "push" ? $remote->pushurl || $remote->url : $remote->url;
198
}
199
t/Git.t
@@ -103,6 +103,9 @@ note "Remotes"; {
103
);
104
105
is_deeply $git->remotes, {};
106
+
107
+ ok !$git->remote("foo");
108
109
$git->change_remote( foo => "http://example.com" );
110
111
is $git->remote( "foo" ), "http://example.com";
0 commit comments