From: Junio C Hamano Date: Thu, 27 Apr 2017 00:57:08 GMT Subject: Re: [PATCH 07/15] remote.c: report error on failure to fopen() Message-ID: In-Reply-To: <3a2686c2-6766-1235-001f-1b5283b5f408@kdbg.org> Johannes Sixt writes: > +++ git ls-remote 'refs*master' > +warning: unable to access '.git/branches/refs*master': Invalid argument > fatal: 'refs*master' does not appear to be a git repository > fatal: Could not read from remote repository. > > Please make sure you have the correct access rights > and the repository exists. > +++ exit_code=128 > > On Windows, it is not allowed to pass a file name with an asterisk to > the OS. The test case contains this comment: > > # We could just as easily have used "master"; the "*" emphasizes its > # role as a pattern. > > So, can we replace the name with a simple "master", our would this > miss the goal of the test case? Should we make it conditional on the > MINGW prerequisite? I would actually be more worried about the real-life impact of this change. Those who did "git ls-remote 'refs*master'" merely got "it does not appear to be a git repository" and that was entirely sensible response from the command. Can Windows folks live with an extra warning before it, or do they object to see that new warning?