Raw
1 #!/bin/sh
2
3 test_description='git rebase interactive environment'
4
5 . ./test-lib.sh
6
7 test_expect_success 'setup' '
8 test_commit one &&
9 test_commit two &&
10 test_commit three
11 '
12
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
16 '
17
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
21 '
22
23 test_done