]> git.ipfire.org Git - thirdparty/git.git/commit
t5553: use local url for invalid fetch
authorJeff King <peff@peff.net>
Wed, 26 Jun 2024 20:54:28 +0000 (16:54 -0400)
committerJunio C Hamano <gitster@pobox.com>
Wed, 26 Jun 2024 21:31:17 +0000 (14:31 -0700)
commit63ec97faf7ab535fba4355fe9333fdc7ea61a7bc
tree5b1fd82980b9aef79c5170faf6565884e06d7ce8
parent786a3e4b8d754d2b14b1208b98eeb0a554ef19a8
t5553: use local url for invalid fetch

We test how "fetch --set-upstream" behaves when given an invalid URL,
using the bogus URL "http://nosuchdomain.example.com". But finding out
that it is invalid requires an actual DNS lookup.

Reduce our dependency on external factors by using an invalid local
filesystem URL, which works just as well for our purposes.

Signed-off-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/t5553-set-upstream.sh