@@ -933,8 +933,8 @@ test_expect_success !WITH_BREAKING_CHANGES 'fetch with branches' '
933
933
mk_empty testrepo &&
934
934
git branch second $the_first_commit &&
935
935
git checkout second &&
936
- mkdir testrepo/.git/branches &&
937
- echo ".." > testrepo/.git/branches/branch1 &&
936
+ mkdir -p testrepo/.git/branches &&
937
+ echo ".." >testrepo/.git/branches/branch1 &&
938
938
(
939
939
cd testrepo &&
940
940
git fetch branch1 &&
@@ -947,8 +947,8 @@ test_expect_success !WITH_BREAKING_CHANGES 'fetch with branches' '
947
947
948
948
test_expect_success ! WITH_BREAKING_CHANGES ' fetch with branches containing #' '
949
949
mk_empty testrepo &&
950
- mkdir testrepo/.git/branches &&
951
- echo "..#second" > testrepo/.git/branches/branch2 &&
950
+ mkdir -p testrepo/.git/branches &&
951
+ echo "..#second" >testrepo/.git/branches/branch2 &&
952
952
(
953
953
cd testrepo &&
954
954
git fetch branch2 &&
@@ -964,8 +964,8 @@ test_expect_success !WITH_BREAKING_CHANGES 'push with branches' '
964
964
git checkout second &&
965
965
966
966
test_when_finished "rm -rf .git/branches" &&
967
- mkdir .git/branches &&
968
- echo "testrepo" > .git/branches/branch1 &&
967
+ mkdir -p .git/branches &&
968
+ echo "testrepo" >.git/branches/branch1 &&
969
969
970
970
git push branch1 &&
971
971
(
@@ -980,8 +980,8 @@ test_expect_success !WITH_BREAKING_CHANGES 'push with branches containing #' '
980
980
mk_empty testrepo &&
981
981
982
982
test_when_finished "rm -rf .git/branches" &&
983
- mkdir .git/branches &&
984
- echo "testrepo#branch3" > .git/branches/branch2 &&
983
+ mkdir -p .git/branches &&
984
+ echo "testrepo#branch3" >.git/branches/branch2 &&
985
985
986
986
git push branch2 &&
987
987
(
@@ -1511,7 +1511,7 @@ EOF
1511
1511
git init no-thin &&
1512
1512
git --git-dir=no-thin/.git config receive.unpacklimit 0 &&
1513
1513
git push no-thin/.git refs/heads/main:refs/heads/foo &&
1514
- echo modified >> path1 &&
1514
+ echo modified >>path1 &&
1515
1515
git commit -am modified &&
1516
1516
git repack -adf &&
1517
1517
rcvpck="git receive-pack --reject-thin-pack-for-testing" &&
0 commit comments