]>
Commit | Line | Data |
---|---|---|
434e0636 EN |
1 | #!/bin/sh |
2 | ||
3 | test_description='git rebase interactive environment' | |
4 | ||
b6046abc | 5 | TEST_PASSES_SANITIZE_LEAK=true |
434e0636 EN |
6 | . ./test-lib.sh |
7 | ||
8 | test_expect_success 'setup' ' | |
9 | test_commit one && | |
10 | test_commit two && | |
11 | test_commit three | |
12 | ' | |
13 | ||
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 | |
17 | ' | |
18 | ||
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 | |
22 | ' | |
23 | ||
24 | test_done |