]> git.ipfire.org Git - thirdparty/git.git/commitdiff
t7005: stop abusing --exec-path
authorD. Ben Knoble <ben.knoble+github@gmail.com>
Wed, 13 Aug 2025 17:50:04 +0000 (13:50 -0400)
committerJunio C Hamano <gitster@pobox.com>
Wed, 13 Aug 2025 18:50:00 +0000 (11:50 -0700)
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>
t/t7005-editor.sh

index 791e2a0e741d69a40b26b80f0ff995392041800d..0a5861b7f078174d55eba8d74844b416cd128511 100755 (executable)
@@ -65,7 +65,7 @@ do
                ;;
        esac
        test_expect_success "Using $i" '
-               git --exec-path=. commit --amend &&
+               PATH="$PWD:$PATH" git commit --amend &&
                test_commit_message HEAD expect
        '
 done
@@ -85,7 +85,7 @@ do
                ;;
        esac
        test_expect_success "Using $i (override)" '
-               git --exec-path=. commit --amend &&
+               PATH="$PWD:$PATH" git commit --amend &&
                test_commit_message HEAD expect
        '
 done