@@ -846,14 +846,9 @@ test_configured_prune_type () {
shift 6 &&
local cmdline="$@" &&
- if test -z "$cmdline_setup"
- then
- test_expect_success 'setup cmdline_setup variable for subsequent test' '
- remote_url="file://$(git -C one config remote.origin.url)" &&
- remote_fetch="$(git -C one config remote.origin.fetch)" &&
- cmdline_setup="\"$remote_url\" \"$remote_fetch\""
- '
- fi &&
+ remote_url="file://$(git -C one config remote.origin.url)" &&
+ remote_fetch="$(git -C one config remote.origin.fetch)" &&
+ cmdline_setup="\"$remote_url\" \"$remote_fetch\"" &&
if test "$mode" = 'link'
then
Remove the lazy test setup added in e1790f9245f (fetch tests: fetch <url> <spec> as well as fetch [<remote>], 2018-02-09) to make it clear that these variables aren't changing across runs. We can also do away with the shell invocations here, but let's do that in a subsequent commit, for now this shows that it's safe to do this more than once. Signed-off-by: Ævar Arnfjörð Bjarmason <avarab@gmail.com> --- t/t5510-fetch.sh | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-)