]> git.ipfire.org Git - thirdparty/git.git/blob - t/t3409-rebase-environ.sh
Sync with Git 2.45.1
[thirdparty/git.git] / t / t3409-rebase-environ.sh
1 #!/bin/sh
2
3 test_description='git rebase interactive environment'
4
5 TEST_PASSES_SANITIZE_LEAK=true
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