Merge branch 'jc/t2300-setup'

A test fix.

* jc/t2300-setup:
  t2300: run git-sh-setup in an environment that better mimics the real life
This commit is contained in:
Junio C Hamano 2016-06-10 15:26:04 -07:00
commit 8ffc9d26e4

View File

@ -8,7 +8,8 @@ test_cd_to_toplevel () {
test_expect_success $3 "$2" '
(
cd '"'$1'"' &&
. "$(git --exec-path)"/git-sh-setup &&
PATH="$(git --exec-path):$PATH" &&
. git-sh-setup &&
cd_to_toplevel &&
[ "$(pwd -P)" = "$TOPLEVEL" ]
)