@@ -11,7 +11,7 @@ TEST_PASSES_SANITIZE_LEAK=true
1111. " $TEST_DIRECTORY " /lib-merge.sh
1212
1313test_setup_rename_delete_untracked () {
14- test_create_repo rename-delete-untracked &&
14+ git init rename-delete-untracked &&
1515 (
1616 cd rename-delete-untracked &&
1717
@@ -56,7 +56,7 @@ test_expect_success "Does git preserve Gollum's precious artifact?" '
5656# We should be able to merge B & C cleanly
5757
5858test_setup_rename_modify_add_source () {
59- test_create_repo rename-modify-add-source &&
59+ git init rename-modify-add-source &&
6060 (
6161 cd rename-modify-add-source &&
6262
@@ -96,7 +96,7 @@ test_expect_failure 'rename/modify/add-source conflict resolvable' '
9696'
9797
9898test_setup_break_detection_1 () {
99- test_create_repo break-detection-1 &&
99+ git init break-detection-1 &&
100100 (
101101 cd break-detection-1 &&
102102
@@ -144,7 +144,7 @@ test_expect_failure 'conflict caused if rename not detected' '
144144'
145145
146146test_setup_break_detection_2 () {
147- test_create_repo break-detection-2 &&
147+ git init break-detection-2 &&
148148 (
149149 cd break-detection-2 &&
150150
@@ -192,7 +192,7 @@ test_expect_failure 'missed conflict if rename not detected' '
192192# Commit C: rename a->b, add unrelated a
193193
194194test_setup_break_detection_3 () {
195- test_create_repo break-detection-3 &&
195+ git init break-detection-3 &&
196196 (
197197 cd break-detection-3 &&
198198
@@ -268,7 +268,7 @@ test_expect_failure 'detect rename/add-source and preserve all data, merge other
268268'
269269
270270test_setup_rename_directory () {
271- test_create_repo rename-directory-$1 &&
271+ git init rename-directory-$1 &&
272272 (
273273 cd rename-directory-$1 &&
274274
@@ -386,7 +386,7 @@ test_expect_success 'rename/directory conflict + content merge conflict' '
386386'
387387
388388test_setup_rename_directory_2 () {
389- test_create_repo rename-directory-2 &&
389+ git init rename-directory-2 &&
390390 (
391391 cd rename-directory-2 &&
392392
@@ -445,7 +445,7 @@ test_expect_success 'disappearing dir in rename/directory conflict handled' '
445445# Commit B: modify a, add different b
446446
447447test_setup_rename_with_content_merge_and_add () {
448- test_create_repo rename-with-content-merge-and-add-$1 &&
448+ git init rename-with-content-merge-and-add-$1 &&
449449 (
450450 cd rename-with-content-merge-and-add-$1 &&
451451
@@ -570,7 +570,7 @@ test_expect_success 'handle rename-with-content-merge vs. add, merge other way'
570570# * Nothing else should be present. Is anything?
571571
572572test_setup_rename_rename_2to1 () {
573- test_create_repo rename-rename-2to1 &&
573+ git init rename-rename-2to1 &&
574574 (
575575 cd rename-rename-2to1 &&
576576
@@ -642,7 +642,7 @@ test_expect_success 'handle rename/rename (2to1) conflict correctly' '
642642# Commit B: rename a->b
643643# Commit C: rename a->c
644644test_setup_rename_rename_1to2 () {
645- test_create_repo rename-rename-1to2 &&
645+ git init rename-rename-1to2 &&
646646 (
647647 cd rename-rename-1to2 &&
648648
@@ -700,7 +700,7 @@ test_expect_success 'merge has correct working tree contents' '
700700# Merging of B & C should NOT be clean; there's a rename/rename conflict
701701
702702test_setup_rename_rename_1to2_add_source_1 () {
703- test_create_repo rename-rename-1to2-add-source-1 &&
703+ git init rename-rename-1to2-add-source-1 &&
704704 (
705705 cd rename-rename-1to2-add-source-1 &&
706706
@@ -748,7 +748,7 @@ test_expect_failure 'detect conflict with rename/rename(1to2)/add-source merge'
748748'
749749
750750test_setup_rename_rename_1to2_add_source_2 () {
751- test_create_repo rename-rename-1to2-add-source-2 &&
751+ git init rename-rename-1to2-add-source-2 &&
752752 (
753753 cd rename-rename-1to2-add-source-2 &&
754754
@@ -794,7 +794,7 @@ test_expect_failure 'rename/rename/add-source still tracks new a file' '
794794'
795795
796796test_setup_rename_rename_1to2_add_dest () {
797- test_create_repo rename-rename-1to2-add-dest &&
797+ git init rename-rename-1to2-add-dest &&
798798 (
799799 cd rename-rename-1to2-add-dest &&
800800
@@ -874,7 +874,7 @@ test_expect_success 'rename/rename/add-dest merge still knows about conflicting
874874# Expected: CONFLICT (rename/add/delete), two-way merged bar
875875
876876test_setup_rad () {
877- test_create_repo rad &&
877+ git init rad &&
878878 (
879879 cd rad &&
880880 echo " original file" > foo &&
@@ -946,7 +946,7 @@ test_expect_merge_algorithm failure success 'rad-check: rename/add/delete confli
946946# Expected: CONFLICT (rename/rename/delete/delete), two-way merged baz
947947
948948test_setup_rrdd () {
949- test_create_repo rrdd &&
949+ git init rrdd &&
950950 (
951951 cd rrdd &&
952952 echo foo > foo &&
@@ -1022,7 +1022,7 @@ test_expect_merge_algorithm failure success 'rrdd-check: rename/rename(2to1)/del
10221022# multi-way merged contents found in two, four, six
10231023
10241024test_setup_mod6 () {
1025- test_create_repo mod6 &&
1025+ git init mod6 &&
10261026 (
10271027 cd mod6 &&
10281028 test_seq 11 19 > one &&
@@ -1160,7 +1160,7 @@ test_conflicts_with_adds_and_renames() {
11601160 # tree
11611161 test_setup_collision_conflict () {
11621162 # test_expect_success "setup simple $sideL/$sideR conflict" '
1163- test_create_repo simple_${sideL} _${sideR} &&
1163+ git init simple_${sideL} _${sideR} &&
11641164 (
11651165 cd simple_${sideL} _${sideR} &&
11661166
@@ -1308,7 +1308,7 @@ test_conflicts_with_adds_and_renames add add
13081308# So, we have four different conflicting files that all end up at path
13091309# 'three'.
13101310test_setup_nested_conflicts_from_rename_rename () {
1311- test_create_repo nested_conflicts_from_rename_rename &&
1311+ git init nested_conflicts_from_rename_rename &&
13121312 (
13131313 cd nested_conflicts_from_rename_rename &&
13141314
@@ -1417,7 +1417,7 @@ test_expect_success 'check nested conflicts from rename/rename(2to1)' '
14171417# Expected: CONFLICT(rename/rename) message, three unstaged entries in the
14181418# index, and contents of orig-[AB] at path orig-[AB]
14191419test_setup_rename_rename_1_to_2_binary () {
1420- test_create_repo rename_rename_1_to_2_binary &&
1420+ git init rename_rename_1_to_2_binary &&
14211421 (
14221422 cd rename_rename_1_to_2_binary &&
14231423
0 commit comments