Code

t7005-editor.sh: Don't invoke real vi when it is in GIT_EXEC_PATH
authorBjörn Steinbrink <B.Steinbrink@gmx.de>
Sun, 11 Nov 2007 17:38:11 +0000 (18:38 +0100)
committerJunio C Hamano <gitster@pobox.com>
Sun, 11 Nov 2007 23:50:59 +0000 (15:50 -0800)
commite70f3202512a022898657047b59b46355be1631b
tree6e314f7a74fead342ba18799cf900a58d8f8bd3e
parenta91ef6e75b897a255cc17b70014a39e68dd54c7a
t7005-editor.sh: Don't invoke real vi when it is in GIT_EXEC_PATH

The git wrapper executable always prepends the GIT_EXEC_PATH build
variable to the current PATH, so prepending "." to the PATH is not
enough to give precedence to the fake vi executable.

The --exec-path option allows to prepend a directory to PATH even before
GIT_EXEC_PATH (which is added anyway), so we can use that instead.

Signed-off-by: Björn Steinbrink <B.Steinbrink@gmx.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/t7005-editor.sh