Hi Duy, On Wed, 3 May 2017, Nguyễn Thái Ngọc Duy wrote: > There's plenty of error() in this code to safely assume --quiet is not a > concern. > > t5512 needs update because if we check the path 'refs*master' (i.e. the > asterisk is part of the path) then we'll get an EINVAL error. So the first change in this patch unmasks a bug that is fixed by the second patch? > diff --git a/t/t5512-ls-remote.sh b/t/t5512-ls-remote.sh > index 94fc9be9ce..02106c9226 100755 > --- a/t/t5512-ls-remote.sh > +++ b/t/t5512-ls-remote.sh > @@ -85,8 +85,15 @@ test_expect_success 'use branch..remote if possible' ' > ' > > test_expect_success 'confuses pattern as remote when no remote specified' ' > - cat >exp <<-\EOF && > - fatal: '\''refs*master'\'' does not appear to be a git repository > + if test_have_prereq MINGW > + then > + # Windows does not like asterisks in pathname > + does_not_exist=master > + else > + does_not_exist="refs*master" > + fi && > + cat >exp <<-EOF && > + fatal: '\''$does_not_exist'\'' does not appear to be a git repository > fatal: Could not read from remote repository. > > Please make sure you have the correct access rights > @@ -98,7 +105,7 @@ test_expect_success 'confuses pattern as remote when no remote specified' ' > # fetch . > # We could just as easily have used "master"; the "*" emphasizes its > # role as a pattern. > - test_must_fail git ls-remote refs*master >actual 2>&1 && > + test_must_fail git ls-remote "$does_not_exist" >actual 2>&1 && > test_i18ncmp exp actual > ' Sure enough. This totally looks like it needs to be a preparatory bug fix. Please separate it out and make sure that it comes before the fopen_or_warn() change in the patch series. Ciao, Dscho