mirror of
https://github.com/git/git.git
synced 2024-11-28 20:44:04 +08:00
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:
commit
8ffc9d26e4
@ -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" ]
|
||||
)
|
||||
|
Loading…
Reference in New Issue
Block a user