t7005: stop abusing --exec-path
We want the editors in this test on PATH, so put them there. Signed-off-by: D. Ben Knoble <ben.knoble+github@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
D. Ben Knoble committed
Aug 13, 2025 at 13:50 UTC
a9c4141abb9fa13abcb226d569c43f9b7b0aa53f
1 file changed
+2
-2
t/t7005-editor.sh
+2
-2
@@ -65,7 +65,7 @@ do
65
;;
66
esac
67
test_expect_success "Using $i" '
68
- git --exec-path=. commit --amend &&
68
+ PATH="$PWD:$PATH" git commit --amend &&
69
test_commit_message HEAD expect
70
'
71
done
@@ -85,7 +85,7 @@ do
85
;;
86
esac
87
test_expect_success "Using $i (override)" '
88
- git --exec-path=. commit --amend &&
88
+ PATH="$PWD:$PATH" git commit --amend &&
89
test_commit_message HEAD expect
90
'
91
done