From: Jeff King Date: Thu, 05 Dec 2013 19:15:18 GMT Subject: Re: [BUG] redundant error message Message-ID: <20131205191518.GB19039@sigill.intra.peff.net> In-Reply-To: On Thu, Dec 05, 2013 at 05:07:31PM +0700, Duy Nguyen wrote: > $ git rev-parse foobar -- > foobar > fatal: ambiguous argument 'foobar': unknown revision or path not in > the working tree. > Use '--' to separate paths from revisions, like this: > 'git [...] -- [...]' > > I already put "--" there. So it should shut up. I think it is more than just a bad error message; if we get that message, it means we are following the wrong code path in interpreting "foobar": $ >foobar $ git rev-parse foobar -- foobar -- fatal: bad flag '--' used after filename That's not right. It looks like this isn't a new breakage, though. v1.5.0 produces the same result. -Peff