Skip to content

Commit a9c4141

Browse files
benknoblegitster
authored andcommitted
t7005: stop abusing --exec-path
We want the editors in this test on PATH, so put them there. Signed-off-by: D. Ben Knoble <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 83d64df commit a9c4141

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

t/t7005-editor.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ do
6565
;;
6666
esac
6767
test_expect_success "Using $i" '
68-
git --exec-path=. commit --amend &&
68+
PATH="$PWD:$PATH" git commit --amend &&
6969
test_commit_message HEAD expect
7070
'
7171
done
@@ -85,7 +85,7 @@ do
8585
;;
8686
esac
8787
test_expect_success "Using $i (override)" '
88-
git --exec-path=. commit --amend &&
88+
PATH="$PWD:$PATH" git commit --amend &&
8989
test_commit_message HEAD expect
9090
'
9191
done

0 commit comments

Comments
 (0)