File tree Expand file tree Collapse file tree 8 files changed +14
-2
lines changed Expand file tree Collapse file tree 8 files changed +14
-2
lines changed Original file line number Diff line number Diff line change @@ -149,7 +149,7 @@ test_expect_success 'blame evil merge' '
149
149
150
150
test_expect_success ' blame huge graft' '
151
151
test_when_finished "git checkout branch2" &&
152
- test_when_finished "rm -f .git/info/grafts " &&
152
+ test_when_finished "rm -rf .git/info" &&
153
153
graft= &&
154
154
for i in 0 1 2
155
155
do
@@ -164,6 +164,7 @@ test_expect_success 'blame huge graft' '
164
164
graft="$graft$commit " || return 1
165
165
done
166
166
done &&
167
+ mkdir .git/info &&
167
168
printf "%s " $graft >.git/info/grafts &&
168
169
check_count -h 00 01 1 10 1
169
170
'
Original file line number Diff line number Diff line change @@ -5,6 +5,7 @@ test_description='test git worktree add'
5
5
GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=main
6
6
export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
7
7
8
+ TEST_CREATE_REPO_NO_TEMPLATE=1
8
9
. ./test-lib.sh
9
10
10
11
. " $TEST_DIRECTORY " /lib-rebase.sh
@@ -229,6 +230,7 @@ test_expect_success 'checkout with grafts' '
229
230
SHA1=$(git rev-parse HEAD) &&
230
231
test_commit def &&
231
232
test_commit xyz &&
233
+ mkdir .git/info &&
232
234
echo "$(git rev-parse HEAD) $SHA1" >.git/info/grafts &&
233
235
cat >expected <<-\EOF &&
234
236
xyz
@@ -559,6 +561,8 @@ test_expect_success 'git worktree --no-guess-remote option overrides config' '
559
561
'
560
562
561
563
post_checkout_hook () {
564
+ test_when_finished " rm -rf .git/hooks" &&
565
+ mkdir .git/hooks &&
562
566
test_hook -C " $1 " post-checkout << -\EOF
563
567
{
564
568
echo $*
Original file line number Diff line number Diff line change @@ -361,13 +361,14 @@ test_expect_success 'replace-objects invalidates commit-graph' '
361
361
test_expect_success ' commit grafts invalidate commit-graph' '
362
362
cd "$TRASH_DIRECTORY" &&
363
363
test_when_finished rm -rf graft &&
364
- git clone full graft &&
364
+ git clone --template= full graft &&
365
365
(
366
366
cd graft &&
367
367
git commit-graph write --reachable &&
368
368
test_path_is_file .git/objects/info/commit-graph &&
369
369
H1=$(git rev-parse --verify HEAD~1) &&
370
370
H3=$(git rev-parse --verify HEAD~3) &&
371
+ mkdir .git/info &&
371
372
echo "$H1 $H3" >.git/info/grafts &&
372
373
git -c core.commitGraph=false log >expect &&
373
374
git -c core.commitGraph=true log >actual &&
Original file line number Diff line number Diff line change 99
99
"
100
100
101
101
test_expect_success ' with grafts' "
102
+ mkdir -p .git/info &&
102
103
echo '$B0 $A2 ' >.git/info/grafts &&
103
104
check $type $B2 -- $B2 $B1 $B0 $A2 $A1 $A0
104
105
"
Original file line number Diff line number Diff line change @@ -8,6 +8,7 @@ test_description='Test git rev-parse with different parent options'
8
8
GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=main
9
9
export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
10
10
11
+ TEST_CREATE_REPO_NO_TEMPLATE=1
11
12
. ./test-lib.sh
12
13
13
14
test_cmp_rev_output () {
@@ -25,6 +26,7 @@ test_expect_success 'setup' '
25
26
git merge -m next --allow-unrelated-histories start2 &&
26
27
test_commit final &&
27
28
29
+ mkdir .git/info &&
28
30
test_seq 40 |
29
31
while read i
30
32
do
Original file line number Diff line number Diff line change @@ -4,6 +4,7 @@ test_description='git annotate'
4
4
GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=main
5
5
export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
6
6
7
+ TEST_CREATE_REPO_NO_TEMPLATE=1
7
8
. ./test-lib.sh
8
9
9
10
PROG=' git annotate'
Original file line number Diff line number Diff line change @@ -4,6 +4,7 @@ test_description='git blame'
4
4
GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=main
5
5
export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
6
6
7
+ TEST_CREATE_REPO_NO_TEMPLATE=1
7
8
. ./test-lib.sh
8
9
9
10
PROG=' git blame -c'
Original file line number Diff line number Diff line change @@ -4,6 +4,7 @@ test_description='colored git blame'
4
4
GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=main
5
5
export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
6
6
7
+ TEST_CREATE_REPO_NO_TEMPLATE=1
7
8
. ./test-lib.sh
8
9
9
10
PROG=' git blame -c'
You can’t perform that action at this time.
0 commit comments