Sorry for the noise, I noticed it when I was trying to construct test cases.
What do we think about adding this at the end of t5505:
test_expect_success 'fetch fail [noexistinghost0:2223]:blink.git' '
(
! git fetch [noexistinghost0:2223]:blink.git 2>err &&
grep ssh err &&
rm err
)
'
test_expect_success 'fetch fail noexistinghost1:2223:blink.git' '
(
! git fetch "noexistinghost1:2223:blink.git" 2>err &&
grep ssh err &&
rm err
)
'
test_expect_success 'fetch fail noexistinghost2:2223' '
(
! git fetch "noexistinghost2:2223" 2>err &&
grep ssh err &&
rm err
)
'
test_expect_success 'fetch fail ./noexistinghost4:2223"' '
(
! git fetch "./noexistinghost4:2223" 2>err &&
grep "does not appear to be a git repository" err &&
rm err
)
'