Re: [PATCH] t7507-*.sh: Fix test #8 (could not run '"$FAKE_EDITOR"')
- From
Jeff King <peff@peff.net>
- Date
- Nov 20, 2013, 19:01 UTC
- Message-ID
- <20131120190129.GA7285@sigill.intra.peff.net>
- In-Reply-To
- <20131120185420.GA11404@sigill.intra.peff.net>
On Wed, Nov 20, 2013 at 01:54:20PM -0500, Jeff King wrote:
> I'm not sure why the old $FAKE_EDITOR doesn't work there, though (not > that it would make the test pass anyway, as it does something different > than what the test wants, but I would not expect the shell to complain > of failure).
Oh, I see. The original FAKE_EDITOR is:
exec grep '^diff --git' "\$1"
But the whole point of the test is that we do not have such a "diff" header, being only a submodule update, and so grep exits non-zero, and git thinks the editor has failed.
So mystery solved, and the sole problem is the proper setting of the variable.
-Peff