@@ -42,7 +42,7 @@ public void CanFetchIntoAnEmptyRepository(string url)
42
42
}
43
43
44
44
// Perform the actual fetch
45
- Commands . Fetch ( repo , remoteName , new string [ 0 ] , new FetchOptions { OnUpdateTips = expectedFetchState . RemoteUpdateTipsHandler } , null ) ;
45
+ Commands . Fetch ( repo , remoteName , new string [ 0 ] , new FetchOptions { OnUpdateTips = expectedFetchState . RemoteUpdateTipsHandler } , null , new ProxyOptions ( ) ) ;
46
46
47
47
// Verify the expected
48
48
expectedFetchState . CheckUpdatedReferences ( repo ) ;
@@ -65,7 +65,7 @@ public void CanFetchIntoAnEmptyRepositoryWithCredentials()
65
65
Commands . Fetch ( repo , remoteName , new string [ 0 ] , new FetchOptions
66
66
{
67
67
CredentialsProvider = Constants . PrivateRepoCredentials
68
- } , null ) ;
68
+ } , null , new ProxyOptions ( ) ) ;
69
69
}
70
70
}
71
71
@@ -102,7 +102,7 @@ public void CanFetchAllTagsIntoAnEmptyRepository(string url)
102
102
{
103
103
TagFetchMode = TagFetchMode . All ,
104
104
OnUpdateTips = expectedFetchState . RemoteUpdateTipsHandler
105
- } , null ) ;
105
+ } , null , new ProxyOptions ( ) ) ;
106
106
107
107
// Verify the expected
108
108
expectedFetchState . CheckUpdatedReferences ( repo ) ;
@@ -148,7 +148,7 @@ public void CanFetchCustomRefSpecsIntoAnEmptyRepository(string url, string local
148
148
{
149
149
TagFetchMode = TagFetchMode . None ,
150
150
OnUpdateTips = expectedFetchState . RemoteUpdateTipsHandler
151
- } , null ) ;
151
+ } , null , new ProxyOptions ( ) ) ;
152
152
153
153
// Verify the expected
154
154
expectedFetchState . CheckUpdatedReferences ( repo ) ;
@@ -179,7 +179,7 @@ public void FetchRespectsConfiguredAutoTagSetting(TagFetchMode tagFetchMode, int
179
179
r => r . TagFetchMode = tagFetchMode ) ;
180
180
181
181
// Perform the actual fetch.
182
- Commands . Fetch ( repo , remoteName , new string [ 0 ] , null , null ) ;
182
+ Commands . Fetch ( repo , remoteName , new string [ 0 ] , null , null , null ) ;
183
183
184
184
// Verify the number of fetched tags.
185
185
Assert . Equal ( expectedTagCount , repo . Tags . Count ( ) ) ;
@@ -197,7 +197,7 @@ public void CanFetchAllTagsAfterAnInitialClone()
197
197
198
198
using ( var repo = new Repository ( clonedRepoPath ) )
199
199
{
200
- Commands . Fetch ( repo , "origin" , new string [ 0 ] , new FetchOptions { TagFetchMode = TagFetchMode . All } , null ) ;
200
+ Commands . Fetch ( repo , "origin" , new string [ 0 ] , new FetchOptions { TagFetchMode = TagFetchMode . All } , null , new ProxyOptions ( ) ) ;
201
201
}
202
202
}
203
203
@@ -223,17 +223,17 @@ public void FetchHonorsTheFetchPruneConfigurationEntry()
223
223
224
224
// No pruning when the configuration entry isn't defined
225
225
Assert . Null ( clonedRepo . Config . Get < bool > ( "fetch.prune" ) ) ;
226
- Commands . Fetch ( clonedRepo , "origin" , new string [ 0 ] , null , null ) ;
226
+ Commands . Fetch ( clonedRepo , "origin" , new string [ 0 ] , null , null , null ) ;
227
227
Assert . Equal ( 5 , clonedRepo . Branches . Count ( b => b . IsRemote && b . FriendlyName != "origin/HEAD" ) ) ;
228
228
229
229
// No pruning when the configuration entry is set to false
230
230
clonedRepo . Config . Set < bool > ( "fetch.prune" , false ) ;
231
- Commands . Fetch ( clonedRepo , "origin" , new string [ 0 ] , null , null ) ;
231
+ Commands . Fetch ( clonedRepo , "origin" , new string [ 0 ] , null , null , null ) ;
232
232
Assert . Equal ( 5 , clonedRepo . Branches . Count ( b => b . IsRemote && b . FriendlyName != "origin/HEAD" ) ) ;
233
233
234
234
// Auto pruning when the configuration entry is set to true
235
235
clonedRepo . Config . Set < bool > ( "fetch.prune" , true ) ;
236
- Commands . Fetch ( clonedRepo , "origin" , new string [ 0 ] , null , null ) ;
236
+ Commands . Fetch ( clonedRepo , "origin" , new string [ 0 ] , null , null , null ) ;
237
237
Assert . Equal ( 4 , clonedRepo . Branches . Count ( b => b . IsRemote && b . FriendlyName != "origin/HEAD" ) ) ;
238
238
}
239
239
}
@@ -251,7 +251,7 @@ public void CannotFetchWithForbiddenCustomHeaders()
251
251
var options = new FetchOptions { CustomHeaders = new String [ ] { knownHeader } } ;
252
252
using ( var repo = new Repository ( clonedRepoPath ) )
253
253
{
254
- Assert . Throws < LibGit2SharpException > ( ( ) => Commands . Fetch ( repo , "origin" , new string [ 0 ] , options , null ) ) ;
254
+ Assert . Throws < LibGit2SharpException > ( ( ) => Commands . Fetch ( repo , "origin" , new string [ 0 ] , options , null , new ProxyOptions ( ) ) ) ;
255
255
}
256
256
}
257
257
@@ -268,7 +268,7 @@ public void CanFetchWithCustomHeaders()
268
268
var options = new FetchOptions { CustomHeaders = new String [ ] { knownHeader } } ;
269
269
using ( var repo = new Repository ( clonedRepoPath ) )
270
270
{
271
- Commands . Fetch ( repo , "origin" , new string [ 0 ] , options , null ) ;
271
+ Commands . Fetch ( repo , "origin" , new string [ 0 ] , options , null , new ProxyOptions ( ) ) ;
272
272
}
273
273
}
274
274
@@ -285,7 +285,7 @@ public void CannotFetchWithMalformedCustomHeaders()
285
285
var options = new FetchOptions { CustomHeaders = new String [ ] { knownHeader } } ;
286
286
using ( var repo = new Repository ( clonedRepoPath ) )
287
287
{
288
- Assert . Throws < LibGit2SharpException > ( ( ) => Commands . Fetch ( repo , "origin" , new string [ 0 ] , options , null ) ) ;
288
+ Assert . Throws < LibGit2SharpException > ( ( ) => Commands . Fetch ( repo , "origin" , new string [ 0 ] , options , null , new ProxyOptions ( ) ) ) ;
289
289
}
290
290
}
291
291
0 commit comments