Re: [PATCH 01/12] tests: add initial bash completion tests
- From
Junio C Hamano <gitster@pobox.com>
- Date
- Apr 9, 2012, 19:58 UTC
- Message-ID
- <7vpqbgvfsa.fsf@alter.siamese.dyndns.org>
- In-Reply-To
- <20120408110642.GB21217@sigill.intra.peff.net>
Jeff King <peff@peff.net> writes:
Show 16 quoted lines
> On Sun, Apr 08, 2012 at 05:30:02AM -0500, Jonathan Nieder wrote: > >> > This test fails for me. The problem is that I have other git-f* programs >> > in my PATH >> [...] >> Is there some reason we care about the exact list of completions for >> "git f"? >> [...] >> Maybe it would make sense to check a few representative items. >> >> # builtin >> grep "^fetch\$" out && > > I think your approach (to stop worrying about stopping pollution from > the environment, and start being more specific in what the tests care > about) is much saner than the snippet I posted.
I have to agree with that; it might give unexpeceted results if the user has a $HOME/bin/git-update-index or something, though.