Skip to content

Commit

Permalink
Merge branch 'bs/maint-t7005' into maint
Browse files Browse the repository at this point in the history
* bs/maint-t7005:
  t7005-editor.sh: Don't invoke real vi when it is in GIT_EXEC_PATH
  • Loading branch information
Junio C Hamano committed Nov 25, 2007
2 parents 89919f4 + e70f320 commit 18a135f
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions t/t7005-editor.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ do
done
unset vi
mv e-vi.sh vi
PATH=".:$PATH"
unset EDITOR VISUAL GIT_EDITOR

test_expect_success setup '
Expand Down Expand Up @@ -59,7 +58,7 @@ do
;;
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
Expand All @@ -81,7 +80,7 @@ do
;;
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
Expand Down

0 comments on commit 18a135f

Please sign in to comment.