]> git.ipfire.org Git - thirdparty/git.git/blame - t/t3409-rebase-environ.sh
Merge branch 'ds/remove-idx-before-pack'
[thirdparty/git.git] / t / t3409-rebase-environ.sh
CommitLineData
434e0636
EN
1#!/bin/sh
2
3test_description='git rebase interactive environment'
4
b6046abc 5TEST_PASSES_SANITIZE_LEAK=true
434e0636
EN
6. ./test-lib.sh
7
8test_expect_success 'setup' '
9 test_commit one &&
10 test_commit two &&
11 test_commit three
12'
13
14test_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
19test_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
24test_done