diff options
author | Sverre Rabbelier <srabbelier@gmail.com> | 2010-03-29 16:48:23 (GMT) |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2010-03-31 16:37:26 (GMT) |
commit | 766ac6a6ba26b0d58c75234bb3553178eafa80b0 (patch) | |
tree | ce6fbd09ebf87852b857539825a91f844b5f2384 /test-match-trees.c | |
parent | 87b3c0117a340df61bdbac6794611c74696bd42a (diff) | |
download | git-766ac6a6ba26b0d58c75234bb3553178eafa80b0.zip git-766ac6a6ba26b0d58c75234bb3553178eafa80b0.tar.gz git-766ac6a6ba26b0d58c75234bb3553178eafa80b0.tar.bz2 |
clone: pass the remote name to remote_get
Currently when using a remote helper to clone a repository, the
remote helper will be passed the url of the target repository as
first argument (which represents the name of the remote). This name
is extracted from transport->remote->name, which is set by
builtin/clone.c when it calls remote_get with argv[0] as argument.
Fix this by passing the name remote will be set up as instead.
However, setup_reference calls remote_get before the remote is
added to the config file. This will result in an improperly
configured remote (in memory) if later on remote_get is called
with an argument that is not equal to the initial remote_get call
in setup_reference. Fix this by delaying the remote_get call until
after the remote has been added to the config file.
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'test-match-trees.c')
0 files changed, 0 insertions, 0 deletions