File tree 1 file changed +9
-1
lines changed
1 file changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -203,6 +203,10 @@ func TestShallowCloneRepo(t *testing.T) {
203
203
require .Error (t , err )
204
204
})
205
205
t .Run ("OK" , func (t * testing.T ) {
206
+ // 2024/08/01 13:22:08 unsupported capability: shallow
207
+ // clone "http://127.0.0.1:41499": unexpected client error: unexpected requesting "http://127.0.0.1:41499/git-upload-pack" status code: 500
208
+ t .Skip ("The gittest server doesn't support shallow cloning, skip for now..." )
209
+
206
210
t .Parallel ()
207
211
srvFS := memfs .New ()
208
212
_ = gittest .NewRepo (t , srvFS ,
@@ -224,7 +228,11 @@ func TestShallowCloneRepo(t *testing.T) {
224
228
Password : "test" ,
225
229
},
226
230
})
227
- require .Error (t , err )
231
+ require .NoError (t , err )
232
+ for _ , path := range []string {"README.md" , "foo" , "baz" } {
233
+ _ , err := clientFS .Stat (filepath .Join ("/repo" , path ))
234
+ require .NoError (t , err )
235
+ }
228
236
})
229
237
}
230
238
You can’t perform that action at this time.
0 commit comments