git-remote: do not complain on multiple URLs for a remote
Having more than one URL for a remote is perfectly normal when the remote is defined to push to multiple places. Get rid of the annoying "Warning" message. Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
parent
2db511fdbd
commit
95775e5377
@ -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'} ||= [];
|
||||
|
Loading…
Reference in New Issue
Block a user