@@ -59,7 +59,8 @@ test_expect_success 'setup' '
5959
6060test_expect_success 'by default all branches will be kept updated' '
6161 (
62- cd dir_all && git fetch &&
62+ cd dir_all &&
63+ git fetch &&
6364 git for-each-ref refs/remotes/origin |
6465 sed -e "/HEAD$/d" \
6566 -e "s|/remotes/origin/|/heads/|" >../actual
@@ -71,7 +72,8 @@ test_expect_success 'by default all branches will be kept updated' '
7172
7273test_expect_success 'by default no tags will be kept updated' '
7374 (
74- cd dir_all && git fetch &&
75+ cd dir_all &&
76+ git fetch &&
7577 git for-each-ref refs/tags >../actual
7678 ) &&
7779 git for-each-ref refs/tags >expect &&
@@ -80,7 +82,8 @@ test_expect_success 'by default no tags will be kept updated' '
8082
8183test_expect_success '--single-branch while HEAD pointing at master' '
8284 (
83- cd dir_master && git fetch &&
85+ cd dir_master &&
86+ git fetch &&
8487 git for-each-ref refs/remotes/origin |
8588 sed -e "/HEAD$/d" \
8689 -e "s|/remotes/origin/|/heads/|" >../actual
@@ -92,7 +95,8 @@ test_expect_success '--single-branch while HEAD pointing at master' '
9295
9396test_expect_success '--single-branch while HEAD pointing at side' '
9497 (
95- cd dir_side && git fetch &&
98+ cd dir_side &&
99+ git fetch &&
96100 git for-each-ref refs/remotes/origin |
97101 sed -e "/HEAD$/d" \
98102 -e "s|/remotes/origin/|/heads/|" >../actual
@@ -104,7 +108,8 @@ test_expect_success '--single-branch while HEAD pointing at side' '
104108
105109test_expect_success '--single-branch with explicit --branch side' '
106110 (
107- cd dir_side2 && git fetch &&
111+ cd dir_side2 &&
112+ git fetch &&
108113 git for-each-ref refs/remotes/origin |
109114 sed -e "/HEAD$/d" \
110115 -e "s|/remotes/origin/|/heads/|" >../actual
@@ -116,7 +121,8 @@ test_expect_success '--single-branch with explicit --branch side' '
116121
117122test_expect_success '--single-branch with explicit --branch with tag fetches updated tag' '
118123 (
119- cd dir_tag && git fetch &&
124+ cd dir_tag &&
125+ git fetch &&
120126 git for-each-ref refs/tags >../actual
121127 ) &&
122128 git for-each-ref refs/tags >expect &&
@@ -125,7 +131,8 @@ test_expect_success '--single-branch with explicit --branch with tag fetches upd
125131
126132test_expect_success '--single-branch with --mirror' '
127133 (
128- cd dir_mirror && git fetch &&
134+ cd dir_mirror &&
135+ git fetch &&
129136 git for-each-ref refs > ../actual
130137 ) &&
131138 git for-each-ref refs >expect &&
@@ -134,7 +141,8 @@ test_expect_success '--single-branch with --mirror' '
134141
135142test_expect_success '--single-branch with explicit --branch and --mirror' '
136143 (
137- cd dir_mirror_side && git fetch &&
144+ cd dir_mirror_side &&
145+ git fetch &&
138146 git for-each-ref refs > ../actual
139147 ) &&
140148 git for-each-ref refs >expect &&
@@ -143,7 +151,8 @@ test_expect_success '--single-branch with explicit --branch and --mirror' '
143151
144152test_expect_success '--single-branch with detached' '
145153 (
146- cd dir_detached && git fetch &&
154+ cd dir_detached &&
155+ git fetch &&
147156 git for-each-ref refs/remotes/origin |
148157 sed -e "/HEAD$/d" \
149158 -e "s|/remotes/origin/|/heads/|" >../actual
0 commit comments