File tree Expand file tree Collapse file tree 1 file changed +4
-10
lines changed
src/Tools/PullRequestQuantifier.Tools.CloneAdoRepo Expand file tree Collapse file tree 1 file changed +4
-10
lines changed Original file line number Diff line number Diff line change @@ -34,17 +34,11 @@ private static async Task Clone(
34
34
string pat )
35
35
{
36
36
var credentials = new NetworkCredential ( userName , pat ) ;
37
- var fetchOptions = new FetchOptions
37
+ var cloneOptions = new CloneOptions ( ) ;
38
+ cloneOptions . FetchOptions . CredentialsProvider = ( url , user , cred ) => new UsernamePasswordCredentials
38
39
{
39
- CredentialsProvider = ( url , user , cred ) => new SecureUsernamePasswordCredentials
40
- {
41
- Username = credentials . UserName ,
42
- Password = credentials . Password
43
- }
44
- } ;
45
- var cloneOptions = new CloneOptions
46
- {
47
- FetchOptions = fetchOptions
40
+ Username = credentials . UserName ,
41
+ Password = credentials . Password
48
42
} ;
49
43
50
44
foreach ( var organization in organizations )
You can’t perform that action at this time.
0 commit comments