Merge branch 'rj/cygwin-has-dev-tty'
[git/gitster.git] / t / t3409-rebase-environ.sh
blobacaf5558dbe2e445efe2989e137b2f9ef5140aaf
1 #!/bin/sh
3 test_description='git rebase interactive environment'
5 TEST_PASSES_SANITIZE_LEAK=true
6 . ./test-lib.sh
8 test_expect_success 'setup' '
9 test_commit one &&
10 test_commit two &&
11 test_commit three
14 test_expect_success 'rebase --exec does not muck with GIT_DIR' '
15 git rebase --exec "printf %s \$GIT_DIR >environ" HEAD~1 &&
16 test_must_be_empty environ
19 test_expect_success 'rebase --exec does not muck with GIT_WORK_TREE' '
20 git rebase --exec "printf %s \$GIT_WORK_TREE >environ" HEAD~1 &&
21 test_must_be_empty environ
24 test_done