summaryrefslogtreecommitdiff
path: root/t/t5515/fetch.br-unconfig_remote-glob
diff options
context:
space:
mode:
authorLibravatar Jonas Fonseca <fonseca@diku.dk>2008-04-13 11:56:54 +0200
committerLibravatar Junio C Hamano <gitster@pobox.com>2008-04-18 16:31:27 -0700
commit24b6177e0261efba063c0b83ae0cdc5993945da9 (patch)
tree668917044c4bb47748f7a39339313591c8487bb0 /t/t5515/fetch.br-unconfig_remote-glob
parentMerge branch 'maint-1.5.4' into maint (diff)
downloadtgif-24b6177e0261efba063c0b83ae0cdc5993945da9.tar.xz
git-remote: reject adding remotes with invalid names
This can happen if the arguments to git-remote add is switched by the user, and git would only show an error if fetching was also requested. Fix it by using the refspec parsing engine to check if the requested name can be parsed as a remote before add it. Also cleanup so that the "remote.<name>.url" config name buffer is only initialized once. Signed-off-by: Jonas Fonseca <fonseca@diku.dk> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t5515/fetch.br-unconfig_remote-glob')
0 files changed, 0 insertions, 0 deletions