X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=git-remote.perl;h=b30ed734e7102b6a5d88c01364fa7d18db8f8bfe;hb=d1b28f512c6d2c7d373c746d8876dbf177ddf114;hp=5cd69513cf84111d1152d07f8cda77b201ffc416;hpb=df4a824341f34b1d2d890ce3e9dd7f6df6475953;p=git.git diff --git a/git-remote.perl b/git-remote.perl index 5cd69513c..b30ed734e 100755 --- a/git-remote.perl +++ b/git-remote.perl @@ -7,10 +7,10 @@ my $git = Git->repository(); sub add_remote_config { my ($hash, $name, $what, $value) = @_; if ($what eq 'url') { - if (exists $hash->{$name}{'URL'}) { - print STDERR "Warning: more than one remote.$name.url\n"; + # Having more than one is Ok -- it is used for push. + if (! exists $hash->{'URL'}) { + $hash->{$name}{'URL'} = $value; } - $hash->{$name}{'URL'} = $value; } elsif ($what eq 'fetch') { $hash->{$name}{'FETCH'} ||= [];