Skip to content

Commit af642f5

Browse files
committed
Merge pull request #2618 from dscho/avoid-d/f-conflict-in-vs/master
ci: avoid d/f conflict in vs/master
2 parents be0eb54 + ccc1b7e commit af642f5

File tree

2 files changed

+14
-14
lines changed

2 files changed

+14
-14
lines changed

t/t5505-remote.sh

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -951,8 +951,8 @@ test_expect_success '"remote show" does not show symbolic refs' '
951951
(
952952
cd three &&
953953
git remote show origin >output &&
954-
! grep "^ *HEAD$" < output &&
955-
! grep -i stale < output
954+
! grep "^ *HEAD$" <output &&
955+
! grep -i stale <output
956956
)
957957
'
958958

@@ -1155,7 +1155,7 @@ test_expect_success !WITH_BREAKING_CHANGES 'migrate a remote from named file in
11551155
(
11561156
cd six &&
11571157
git remote rm origin &&
1158-
mkdir .git/branches &&
1158+
mkdir -p .git/branches &&
11591159
echo "$origin_url#main" >.git/branches/origin &&
11601160
git remote rename origin origin &&
11611161
test_path_is_missing .git/branches/origin &&
@@ -1170,8 +1170,8 @@ test_expect_success !WITH_BREAKING_CHANGES 'migrate a remote from named file in
11701170
(
11711171
cd seven &&
11721172
git remote rm origin &&
1173-
mkdir .git/branches &&
1174-
echo "quux#foom" > .git/branches/origin &&
1173+
mkdir -p .git/branches &&
1174+
echo "quux#foom" >.git/branches/origin &&
11751175
git remote rename origin origin &&
11761176
test_path_is_missing .git/branches/origin &&
11771177
test "$(git config remote.origin.url)" = "quux" &&

t/t5516-fetch-push.sh

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -979,8 +979,8 @@ test_expect_success !WITH_BREAKING_CHANGES 'fetch with branches' '
979979
mk_empty testrepo &&
980980
git branch second $the_first_commit &&
981981
git checkout second &&
982-
mkdir testrepo/.git/branches &&
983-
echo ".." > testrepo/.git/branches/branch1 &&
982+
mkdir -p testrepo/.git/branches &&
983+
echo ".." >testrepo/.git/branches/branch1 &&
984984
(
985985
cd testrepo &&
986986
git fetch branch1 &&
@@ -993,8 +993,8 @@ test_expect_success !WITH_BREAKING_CHANGES 'fetch with branches' '
993993

994994
test_expect_success !WITH_BREAKING_CHANGES 'fetch with branches containing #' '
995995
mk_empty testrepo &&
996-
mkdir testrepo/.git/branches &&
997-
echo "..#second" > testrepo/.git/branches/branch2 &&
996+
mkdir -p testrepo/.git/branches &&
997+
echo "..#second" >testrepo/.git/branches/branch2 &&
998998
(
999999
cd testrepo &&
10001000
git fetch branch2 &&
@@ -1010,8 +1010,8 @@ test_expect_success !WITH_BREAKING_CHANGES 'push with branches' '
10101010
git checkout second &&
10111011
10121012
test_when_finished "rm -rf .git/branches" &&
1013-
mkdir .git/branches &&
1014-
echo "testrepo" > .git/branches/branch1 &&
1013+
mkdir -p .git/branches &&
1014+
echo "testrepo" >.git/branches/branch1 &&
10151015
10161016
git push branch1 &&
10171017
(
@@ -1026,8 +1026,8 @@ test_expect_success !WITH_BREAKING_CHANGES 'push with branches containing #' '
10261026
mk_empty testrepo &&
10271027
10281028
test_when_finished "rm -rf .git/branches" &&
1029-
mkdir .git/branches &&
1030-
echo "testrepo#branch3" > .git/branches/branch2 &&
1029+
mkdir -p .git/branches &&
1030+
echo "testrepo#branch3" >.git/branches/branch2 &&
10311031
10321032
git push branch2 &&
10331033
(
@@ -1557,7 +1557,7 @@ EOF
15571557
git init no-thin &&
15581558
git --git-dir=no-thin/.git config receive.unpacklimit 0 &&
15591559
git push no-thin/.git refs/heads/main:refs/heads/foo &&
1560-
echo modified >> path1 &&
1560+
echo modified >>path1 &&
15611561
git commit -am modified &&
15621562
git repack -adf &&
15631563
rcvpck="git receive-pack --reject-thin-pack-for-testing" &&

0 commit comments

Comments
 (0)