@@ -93,29 +93,29 @@ test_expect_success "setup for testing promisor remote advertisement" '
93
93
94
94
test_expect_success " clone with promisor.advertise set to 'true'" '
95
95
git -C server config promisor.advertise true &&
96
+ test_when_finished "rm -rf client" &&
96
97
97
98
# Clone from server to create a client
98
99
GIT_NO_LAZY_FETCH=0 git clone -c remote.lop.promisor=true \
99
100
-c remote.lop.fetch="+refs/heads/*:refs/remotes/lop/*" \
100
101
-c remote.lop.url="file://$(pwd)/lop" \
101
102
-c promisor.acceptfromserver=All \
102
103
--no-local --filter="blob:limit=5k" server client &&
103
- test_when_finished "rm -rf client" &&
104
104
105
105
# Check that the largest object is still missing on the server
106
106
check_missing_objects server 1 "$oid"
107
107
'
108
108
109
109
test_expect_success " clone with promisor.advertise set to 'false'" '
110
110
git -C server config promisor.advertise false &&
111
+ test_when_finished "rm -rf client" &&
111
112
112
113
# Clone from server to create a client
113
114
GIT_NO_LAZY_FETCH=0 git clone -c remote.lop.promisor=true \
114
115
-c remote.lop.fetch="+refs/heads/*:refs/remotes/lop/*" \
115
116
-c remote.lop.url="file://$(pwd)/lop" \
116
117
-c promisor.acceptfromserver=All \
117
118
--no-local --filter="blob:limit=5k" server client &&
118
- test_when_finished "rm -rf client" &&
119
119
120
120
# Check that the largest object is not missing on the server
121
121
check_missing_objects server 0 "" &&
@@ -126,14 +126,14 @@ test_expect_success "clone with promisor.advertise set to 'false'" '
126
126
127
127
test_expect_success " clone with promisor.acceptfromserver set to 'None'" '
128
128
git -C server config promisor.advertise true &&
129
+ test_when_finished "rm -rf client" &&
129
130
130
131
# Clone from server to create a client
131
132
GIT_NO_LAZY_FETCH=0 git clone -c remote.lop.promisor=true \
132
133
-c remote.lop.fetch="+refs/heads/*:refs/remotes/lop/*" \
133
134
-c remote.lop.url="file://$(pwd)/lop" \
134
135
-c promisor.acceptfromserver=None \
135
136
--no-local --filter="blob:limit=5k" server client &&
136
- test_when_finished "rm -rf client" &&
137
137
138
138
# Check that the largest object is not missing on the server
139
139
check_missing_objects server 0 "" &&
@@ -144,8 +144,8 @@ test_expect_success "clone with promisor.acceptfromserver set to 'None'" '
144
144
145
145
test_expect_success " init + fetch with promisor.advertise set to 'true'" '
146
146
git -C server config promisor.advertise true &&
147
-
148
147
test_when_finished "rm -rf client" &&
148
+
149
149
mkdir client &&
150
150
git -C client init &&
151
151
git -C client config remote.lop.promisor true &&
@@ -162,29 +162,29 @@ test_expect_success "init + fetch with promisor.advertise set to 'true'" '
162
162
163
163
test_expect_success " clone with promisor.acceptfromserver set to 'KnownName'" '
164
164
git -C server config promisor.advertise true &&
165
+ test_when_finished "rm -rf client" &&
165
166
166
167
# Clone from server to create a client
167
168
GIT_NO_LAZY_FETCH=0 git clone -c remote.lop.promisor=true \
168
169
-c remote.lop.fetch="+refs/heads/*:refs/remotes/lop/*" \
169
170
-c remote.lop.url="file://$(pwd)/lop" \
170
171
-c promisor.acceptfromserver=KnownName \
171
172
--no-local --filter="blob:limit=5k" server client &&
172
- test_when_finished "rm -rf client" &&
173
173
174
174
# Check that the largest object is still missing on the server
175
175
check_missing_objects server 1 "$oid"
176
176
'
177
177
178
178
test_expect_success " clone with 'KnownName' and different remote names" '
179
179
git -C server config promisor.advertise true &&
180
+ test_when_finished "rm -rf client" &&
180
181
181
182
# Clone from server to create a client
182
183
GIT_NO_LAZY_FETCH=0 git clone -c remote.serverTwo.promisor=true \
183
184
-c remote.serverTwo.fetch="+refs/heads/*:refs/remotes/lop/*" \
184
185
-c remote.serverTwo.url="file://$(pwd)/lop" \
185
186
-c promisor.acceptfromserver=KnownName \
186
187
--no-local --filter="blob:limit=5k" server client &&
187
- test_when_finished "rm -rf client" &&
188
188
189
189
# Check that the largest object is not missing on the server
190
190
check_missing_objects server 0 "" &&
@@ -195,14 +195,14 @@ test_expect_success "clone with 'KnownName' and different remote names" '
195
195
196
196
test_expect_success " clone with promisor.acceptfromserver set to 'KnownUrl'" '
197
197
git -C server config promisor.advertise true &&
198
+ test_when_finished "rm -rf client" &&
198
199
199
200
# Clone from server to create a client
200
201
GIT_NO_LAZY_FETCH=0 git clone -c remote.lop.promisor=true \
201
202
-c remote.lop.fetch="+refs/heads/*:refs/remotes/lop/*" \
202
203
-c remote.lop.url="file://$(pwd)/lop" \
203
204
-c promisor.acceptfromserver=KnownUrl \
204
205
--no-local --filter="blob:limit=5k" server client &&
205
- test_when_finished "rm -rf client" &&
206
206
207
207
# Check that the largest object is still missing on the server
208
208
check_missing_objects server 1 "$oid"
@@ -212,14 +212,14 @@ test_expect_success "clone with 'KnownUrl' and different remote urls" '
212
212
ln -s lop serverTwo &&
213
213
214
214
git -C server config promisor.advertise true &&
215
+ test_when_finished "rm -rf client" &&
215
216
216
217
# Clone from server to create a client
217
218
GIT_NO_LAZY_FETCH=0 git clone -c remote.lop.promisor=true \
218
219
-c remote.lop.fetch="+refs/heads/*:refs/remotes/lop/*" \
219
220
-c remote.lop.url="file://$(pwd)/serverTwo" \
220
221
-c promisor.acceptfromserver=KnownUrl \
221
222
--no-local --filter="blob:limit=5k" server client &&
222
- test_when_finished "rm -rf client" &&
223
223
224
224
# Check that the largest object is not missing on the server
225
225
check_missing_objects server 0 "" &&
0 commit comments