Re: git-* in test scripts
- From
Junio C Hamano <gitster@pobox.com>
- Date
- Aug 29, 2008, 00:04 UTC
- Message-ID
- <7v7ia0d6u9.fsf@gitster.siamese.dyndns.org>
- In-Reply-To
- <20080828234151.GG29609@coredump.intra.peff.net>
Jeff King <peff@peff.net> writes:
Show 11 quoted lines
> On Thu, Aug 28, 2008 at 04:24:50PM -0700, Junio C Hamano wrote: > >> Test scripts are executed in a special environment whose GIT_EXEC_PATH >> points at the top of the build tree, where all git-foo lives. > > I am not sure how GIT_EXEC_PATH is relevant. We put the git top-level > directory in the PATH, which is why "git-foo" works at all in the test > scripts. But the install by default does _not_ put those commands in > the PATH. So the test scripts serve as a poor example of how to use > git. The commands contained within them would not run in an ordinary git > installation.
Well, I was merely replying to your message. If you admit that tests are special and a poor example, why did you bring it up? ;-)