mirror of
https://github.com/git/git.git
synced 2024-11-08 18:23:01 +01:00
Merge branch 'jc/remote-multi-url'
* jc/remote-multi-url: git-remote: do not complain on multiple URLs for a remote
This commit is contained in:
commit
ca132089d2
1 changed files with 3 additions and 3 deletions
|
@ -7,10 +7,10 @@
|
|||
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 a new issue