Skip to content

Commit b031c40

Browse files
committed
Merge branch 'cd-gitdir-subshell'
2 parents ea3431d + 5e27c48 commit b031c40

2 files changed

Lines changed: 7 additions & 4 deletions

File tree

t/t4203-mailmap.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -943,7 +943,7 @@ test_expect_success 'set up mailmap location tests' '
943943
'
944944

945945
test_expect_success 'bare repo with --work-tree finds mailmap at top-level' '
946-
git -C loc-bare --work-tree=. log -1 --format=%aE >actual &&
946+
git -C loc-bare --git-dir=. --work-tree=. log -1 --format=%aE >actual &&
947947
echo new@example.com >expect &&
948948
test_cmp expect actual
949949
'

t/t5615-alternate-env.sh

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -48,9 +48,12 @@ test_expect_success 'access multiple alternates' '
4848
# bare paths are relative from $GIT_DIR
4949
test_expect_success 'access alternate via relative path (bare)' '
5050
git init --bare bare.git &&
51-
check_obj "../one.git/objects" -C bare.git <<-EOF
52-
$one blob
53-
EOF
51+
(
52+
cd bare.git && GIT_DIR=. && export GIT_DIR &&
53+
check_obj "../one.git/objects" <<-EOF
54+
$one blob
55+
EOF
56+
)
5457
'
5558

5659
# non-bare paths are relative to top of worktree

0 commit comments

Comments
 (0)