@@ -83,7 +83,7 @@ func TestCloneRepo(t *testing.T) {
83
83
// We do not overwrite a repo if one is already present.
84
84
t .Run ("AlreadyCloned" , func (t * testing.T ) {
85
85
srvFS := memfs .New ()
86
- _ = gittest .NewRepo (t , srvFS , gittest .Commit (t , "README.md" , "Hello, world!" , "Wow!" ))
86
+ _ = gittest .NewRepo (t , srvFS ). Commit ( gittest .Commit (t , "README.md" , "Hello, world!" , "Wow!" ))
87
87
authMW := mwtest .BasicAuthMW (tc .srvUsername , tc .srvPassword )
88
88
srv := httptest .NewServer (authMW (gittest .NewServer (srvFS )))
89
89
clientFS := memfs .New ()
@@ -102,7 +102,7 @@ func TestCloneRepo(t *testing.T) {
102
102
t .Run ("BasicAuth" , func (t * testing.T ) {
103
103
t .Parallel ()
104
104
srvFS := memfs .New ()
105
- _ = gittest .NewRepo (t , srvFS , gittest .Commit (t , "README.md" , "Hello, world!" , "Wow!" ))
105
+ _ = gittest .NewRepo (t , srvFS ). Commit ( gittest .Commit (t , "README.md" , "Hello, world!" , "Wow!" ))
106
106
authMW := mwtest .BasicAuthMW (tc .srvUsername , tc .srvPassword )
107
107
srv := httptest .NewServer (authMW (gittest .NewServer (srvFS )))
108
108
clientFS := memfs .New ()
@@ -135,7 +135,7 @@ func TestCloneRepo(t *testing.T) {
135
135
t .Run ("InURL" , func (t * testing.T ) {
136
136
t .Parallel ()
137
137
srvFS := memfs .New ()
138
- _ = gittest .NewRepo (t , srvFS , gittest .Commit (t , "README.md" , "Hello, world!" , "Wow!" ))
138
+ _ = gittest .NewRepo (t , srvFS ). Commit ( gittest .Commit (t , "README.md" , "Hello, world!" , "Wow!" ))
139
139
authMW := mwtest .BasicAuthMW (tc .srvUsername , tc .srvPassword )
140
140
srv := httptest .NewServer (authMW (gittest .NewServer (srvFS )))
141
141
@@ -173,7 +173,7 @@ func TestShallowCloneRepo(t *testing.T) {
173
173
t .Run ("NotEmpty" , func (t * testing.T ) {
174
174
t .Parallel ()
175
175
srvFS := memfs .New ()
176
- _ = gittest .NewRepo (t , srvFS ,
176
+ _ = gittest .NewRepo (t , srvFS ). Commit (
177
177
gittest .Commit (t , "README.md" , "Hello, world!" , "Many wow!" ),
178
178
gittest .Commit (t , "foo" , "bar!" , "Such commit!" ),
179
179
gittest .Commit (t , "baz" , "qux" , "V nice!" ),
@@ -207,7 +207,7 @@ func TestShallowCloneRepo(t *testing.T) {
207
207
208
208
t .Parallel ()
209
209
srvFS := memfs .New ()
210
- _ = gittest .NewRepo (t , srvFS ,
210
+ _ = gittest .NewRepo (t , srvFS ). Commit (
211
211
gittest .Commit (t , "README.md" , "Hello, world!" , "Many wow!" ),
212
212
gittest .Commit (t , "foo" , "bar!" , "Such commit!" ),
213
213
gittest .Commit (t , "baz" , "qux" , "V nice!" ),
@@ -244,7 +244,7 @@ func TestCloneRepoSSH(t *testing.T) {
244
244
tmpDir := t .TempDir ()
245
245
srvFS := osfs .New (tmpDir , osfs .WithChrootOS ())
246
246
247
- _ = gittest .NewRepo (t , srvFS , gittest .Commit (t , "README.md" , "Hello, world!" , "Wow!" ))
247
+ _ = gittest .NewRepo (t , srvFS ). Commit ( gittest .Commit (t , "README.md" , "Hello, world!" , "Wow!" ))
248
248
key := randKeygen (t )
249
249
tr := gittest .NewServerSSH (t , srvFS , key .PublicKey ())
250
250
gitURL := tr .String ()
@@ -275,7 +275,7 @@ func TestCloneRepoSSH(t *testing.T) {
275
275
tmpDir := t .TempDir ()
276
276
srvFS := osfs .New (tmpDir , osfs .WithChrootOS ())
277
277
278
- _ = gittest .NewRepo (t , srvFS , gittest .Commit (t , "README.md" , "Hello, world!" , "Wow!" ))
278
+ _ = gittest .NewRepo (t , srvFS ). Commit ( gittest .Commit (t , "README.md" , "Hello, world!" , "Wow!" ))
279
279
key := randKeygen (t )
280
280
tr := gittest .NewServerSSH (t , srvFS , key .PublicKey ())
281
281
gitURL := tr .String ()
@@ -306,7 +306,7 @@ func TestCloneRepoSSH(t *testing.T) {
306
306
tmpDir := t .TempDir ()
307
307
srvFS := osfs .New (tmpDir , osfs .WithChrootOS ())
308
308
309
- _ = gittest .NewRepo (t , srvFS , gittest .Commit (t , "README.md" , "Hello, world!" , "Wow!" ))
309
+ _ = gittest .NewRepo (t , srvFS ). Commit ( gittest .Commit (t , "README.md" , "Hello, world!" , "Wow!" ))
310
310
key := randKeygen (t )
311
311
tr := gittest .NewServerSSH (t , srvFS , key .PublicKey ())
312
312
gitURL := tr .String ()
0 commit comments