@@ -933,8 +933,8 @@ test_expect_success !WITH_BREAKING_CHANGES 'fetch with branches' '
933933 mk_empty testrepo &&
934934 git branch second $the_first_commit &&
935935 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 &&
938938 (
939939 cd testrepo &&
940940 git fetch branch1 &&
@@ -947,8 +947,8 @@ test_expect_success !WITH_BREAKING_CHANGES 'fetch with branches' '
947947
948948test_expect_success ! WITH_BREAKING_CHANGES ' fetch with branches containing #' '
949949 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 &&
952952 (
953953 cd testrepo &&
954954 git fetch branch2 &&
@@ -964,8 +964,8 @@ test_expect_success !WITH_BREAKING_CHANGES 'push with branches' '
964964 git checkout second &&
965965
966966 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 &&
969969
970970 git push branch1 &&
971971 (
@@ -980,8 +980,8 @@ test_expect_success !WITH_BREAKING_CHANGES 'push with branches containing #' '
980980 mk_empty testrepo &&
981981
982982 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 &&
985985
986986 git push branch2 &&
987987 (
@@ -1511,7 +1511,7 @@ EOF
15111511 git init no-thin &&
15121512 git --git-dir=no-thin/.git config receive.unpacklimit 0 &&
15131513 git push no-thin/.git refs/heads/main:refs/heads/foo &&
1514- echo modified >> path1 &&
1514+ echo modified >>path1 &&
15151515 git commit -am modified &&
15161516 git repack -adf &&
15171517 rcvpck="git receive-pack --reject-thin-pack-for-testing" &&
0 commit comments