summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: a91ef6e)
raw | patch | inline | side by side (parent: a91ef6e)
author | Björn Steinbrink <B.Steinbrink@gmx.de> | |
Sun, 11 Nov 2007 17:38:11 +0000 (18:38 +0100) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Sun, 11 Nov 2007 23:50:59 +0000 (15:50 -0800) |
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>
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 | patch | blob | history |
diff --git a/t/t7005-editor.sh b/t/t7005-editor.sh
index 28643b0da41cab7af9464adbaae59a88820b1ebe..ed416e14e07950d9c7a0d0b85cd9e0307dd55a65 100755 (executable)
--- a/t/t7005-editor.sh
+++ b/t/t7005-editor.sh
done
unset vi
mv e-vi.sh vi
-PATH=".:$PATH"
unset EDITOR VISUAL GIT_EDITOR
test_expect_success setup '
;;
esac
test_expect_success "Using $i" '
- git commit --amend &&
+ git --exec-path=. commit --amend &&
git show -s --pretty=oneline |
sed -e "s/^[0-9a-f]* //" >actual &&
diff actual expect
;;
esac
test_expect_success "Using $i (override)" '
- git commit --amend &&
+ git --exec-path=. commit --amend &&
git show -s --pretty=oneline |
sed -e "s/^[0-9a-f]* //" >actual &&
diff actual expect