Skip to content

Commit 9f16580

Browse files
committed
Merge branch 'bs/maint-t7005'
* bs/maint-t7005: t7005-editor.sh: Don't invoke real vi when it is in GIT_EXEC_PATH
2 parents c78a249 + e70f320 commit 9f16580

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

t/t7005-editor.sh

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ do
1515
done
1616
unset vi
1717
mv e-vi.sh vi
18-
PATH=".:$PATH"
1918
unset EDITOR VISUAL GIT_EDITOR
2019

2120
test_expect_success setup '
@@ -61,7 +60,7 @@ do
6160
;;
6261
esac
6362
test_expect_success "Using $i" '
64-
git commit --amend &&
63+
git --exec-path=. commit --amend &&
6564
git show -s --pretty=oneline |
6665
sed -e "s/^[0-9a-f]* //" >actual &&
6766
diff actual expect
@@ -83,7 +82,7 @@ do
8382
;;
8483
esac
8584
test_expect_success "Using $i (override)" '
86-
git commit --amend &&
85+
git --exec-path=. commit --amend &&
8786
git show -s --pretty=oneline |
8887
sed -e "s/^[0-9a-f]* //" >actual &&
8988
diff actual expect

0 commit comments

Comments
 (0)