From: Junio C Hamano Date: Fri, 29 Aug 2008 00:04:46 GMT Subject: Re: git-* in test scripts Message-ID: <7v7ia0d6u9.fsf@gitster.siamese.dyndns.org> In-Reply-To: <20080828234151.GG29609@coredump.intra.peff.net> Jeff King writes: > 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? ;-)