Re: [PATCH v5] remote: add get-url subcommand

2015-09-16 Thread Junio C Hamano
Ben Boeckel writes: > +get_url_test () { > + cat >expect && > + test_expect_success "get-url $*" " > + git remote get-url $* >actual && > + test_cmp expect actual > + " > +} This makes any use of get_url_test inside test_expect_success wrong, I suspect. Try r

[PATCH v5] remote: add get-url subcommand

2015-09-15 Thread Ben Boeckel
Expanding `insteadOf` is a part of ls-remote --url and there is no way to expand `pushInsteadOf` as well. Add a get-url subcommand to be able to query both as well as a way to get all configured urls. Signed-off-by: Ben Boeckel --- Documentation/git-remote.txt | 10 builtin/remote.c