clone_submodule: avoid using `access()` on directories
[git.git] / t / t3409-rebase-environ.sh
blob83ffb39d9ffdfd869ecb24e5adbbe11944a73c53
1 #!/bin/sh
3 test_description='git rebase interactive environment'
5 . ./test-lib.sh
7 test_expect_success 'setup' '
8 test_commit one &&
9 test_commit two &&
10 test_commit three
13 test_expect_success 'rebase --exec does not muck with GIT_DIR' '
14 git rebase --exec "printf %s \$GIT_DIR >environ" HEAD~1 &&
15 test_must_be_empty environ
18 test_expect_success 'rebase --exec does not muck with GIT_WORK_TREE' '
19 git rebase --exec "printf %s \$GIT_WORK_TREE >environ" HEAD~1 &&
20 test_must_be_empty environ
23 test_done