tests: change "cd ... && git fetch" to "cd &&\n\tgit fetch"

Change occurrences "cd" followed by "fetch" on a single line to be on two lines. This is purely a stylistic change pointed out in code review for an unrelated patch. Change the these tests use so new tests added later using the more common style don't look out of place. Signed-off-by: Ævar Arnfjörð Bjarmason <avarab@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>

Ævar Arnfjörð Bjarmason committed Apr 26, 2017 at 23:12 UTC 28d67d9a262c7600f5c17bb8e2072fd224260ade
1 file changed +18 -9
t/t5612-clone-refspec.sh
+18 -9
@@ -59,7 +59,8 @@ test_expect_success 'setup' '
59
60 test_expect_success 'by default all branches will be kept updated' '
61 (
62 - cd dir_all && git fetch &&
62 + cd dir_all &&
63 + git fetch &&
64 git for-each-ref refs/remotes/origin |
65 sed -e "/HEAD$/d" \
66 -e "s|/remotes/origin/|/heads/|" >../actual
@@ -71,7 +72,8 @@ test_expect_success 'by default all branches will be kept updated' '
72
73 test_expect_success 'by default no tags will be kept updated' '
74 (
74 - cd dir_all && git fetch &&
75 + cd dir_all &&
76 + git fetch &&
77 git for-each-ref refs/tags >../actual
78 ) &&
79 git for-each-ref refs/tags >expect &&
@@ -80,7 +82,8 @@ test_expect_success 'by default no tags will be kept updated' '
82
83 test_expect_success '--single-branch while HEAD pointing at master' '
84 (
83 - cd dir_master && git fetch &&
85 + cd dir_master &&
86 + git fetch &&
87 git for-each-ref refs/remotes/origin |
88 sed -e "/HEAD$/d" \
89 -e "s|/remotes/origin/|/heads/|" >../actual
@@ -92,7 +95,8 @@ test_expect_success '--single-branch while HEAD pointing at master' '
95
96 test_expect_success '--single-branch while HEAD pointing at side' '
97 (
95 - cd dir_side && git fetch &&
98 + cd dir_side &&
99 + git fetch &&
100 git for-each-ref refs/remotes/origin |
101 sed -e "/HEAD$/d" \
102 -e "s|/remotes/origin/|/heads/|" >../actual
@@ -104,7 +108,8 @@ test_expect_success '--single-branch while HEAD pointing at side' '
108
109 test_expect_success '--single-branch with explicit --branch side' '
110 (
107 - cd dir_side2 && git fetch &&
111 + cd dir_side2 &&
112 + git fetch &&
113 git for-each-ref refs/remotes/origin |
114 sed -e "/HEAD$/d" \
115 -e "s|/remotes/origin/|/heads/|" >../actual
@@ -116,7 +121,8 @@ test_expect_success '--single-branch with explicit --branch side' '
121
122 test_expect_success '--single-branch with explicit --branch with tag fetches updated tag' '
123 (
119 - cd dir_tag && git fetch &&
124 + cd dir_tag &&
125 + git fetch &&
126 git for-each-ref refs/tags >../actual
127 ) &&
128 git for-each-ref refs/tags >expect &&
@@ -125,7 +131,8 @@ test_expect_success '--single-branch with explicit --branch with tag fetches upd
131
132 test_expect_success '--single-branch with --mirror' '
133 (
128 - cd dir_mirror && git fetch &&
134 + cd dir_mirror &&
135 + git fetch &&
136 git for-each-ref refs > ../actual
137 ) &&
138 git for-each-ref refs >expect &&
@@ -134,7 +141,8 @@ test_expect_success '--single-branch with --mirror' '
141
142 test_expect_success '--single-branch with explicit --branch and --mirror' '
143 (
137 - cd dir_mirror_side && git fetch &&
144 + cd dir_mirror_side &&
145 + git fetch &&
146 git for-each-ref refs > ../actual
147 ) &&
148 git for-each-ref refs >expect &&
@@ -143,7 +151,8 @@ test_expect_success '--single-branch with explicit --branch and --mirror' '
151
152 test_expect_success '--single-branch with detached' '
153 (
146 - cd dir_detached && git fetch &&
154 + cd dir_detached &&
155 + git fetch &&
156 git for-each-ref refs/remotes/origin |
157 sed -e "/HEAD$/d" \
158 -e "s|/remotes/origin/|/heads/|" >../actual