interplane.Get Omega
Read in your language

git

[Ported from github.com/git/git] Sync with Git 2.56.1

Brought by drakestapleton

branch master Branches Tags History

git / t / t3409-rebase-environ.sh

23 lines · 509 bytes Raw Blame History
1#!/bin/sh
2
3test_description='git rebase interactive environment'
4
5. ./test-lib.sh
6
7test_expect_success 'setup' '
8 test_commit one &&
9 test_commit two &&
10 test_commit three
11'
12
13test_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
18test_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
23test_done