File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -943,7 +943,7 @@ test_expect_success 'set up mailmap location tests' '
943943'
944944
945945test_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'
Original file line number Diff line number Diff line change @@ -48,9 +48,12 @@ test_expect_success 'access multiple alternates' '
4848# bare paths are relative from $GIT_DIR
4949test_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
You can’t perform that action at this time.
0 commit comments