Files
git/builtin
Johannes Schindelin fb86e32dcc git remote: allow adding remotes agreeing with url.<...>.insteadOf
When adding a remote, we make sure that the remote does not exist
already. However, this test was not quite correct: when the
url.<...>.insteadOf config variable was set to the remote name to be
added, the code would assume that the remote exists already.

Let's allow adding remotes when there is a url.<...>.insteadOf setting
when both the name and the URL agree with the remote to be added.

It might seem like a mistake to compare against remote->url[0] without
verifying that remote->url_nr >=1, but at this point a missing URL has
been filled by the name already, therefore url_nr cannot be zero.

Noticed by Anastas Dancha.

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
2014-12-23 12:42:36 -08:00
..
2014-11-21 10:19:14 -08:00
2014-07-16 11:10:11 -07:00
2014-12-22 12:27:36 -08:00
2014-12-22 12:27:12 -08:00
2014-12-22 09:57:42 -08:00
2014-10-24 14:59:10 -07:00
2014-01-17 12:21:20 -08:00
2014-09-02 12:00:30 -07:00
2014-11-25 15:24:55 -08:00
2014-10-29 10:07:56 -07:00
2014-04-30 10:30:02 -07:00
2014-10-08 13:05:25 -07:00