Skip to content

Commit 73ddf16

Browse files
committed
Test
1 parent 0de11e4 commit 73ddf16

File tree

1 file changed

+6
-3
lines changed
  • src/Tools/PullRequestQuantifier.Tools.CloneAdoRepo

1 file changed

+6
-3
lines changed

src/Tools/PullRequestQuantifier.Tools.CloneAdoRepo/Program.cs

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,15 +34,18 @@ private static async Task Clone(
3434
string pat)
3535
{
3636
var credentials = new NetworkCredential(userName, pat);
37-
var cloneOptions = new CloneOptions();
38-
cloneOptions.FetchOptions = new FetchOptions
37+
var fetchOptions = new FetchOptions
3938
{
4039
CredentialsProvider = (url, user, cred) => new SecureUsernamePasswordCredentials
4140
{
4241
Username = credentials.UserName,
43-
Password = credentials.Password // Use .Password, not .SecurePassword
42+
Password = credentials.Password
4443
}
4544
};
45+
var cloneOptions = new CloneOptions
46+
{
47+
FetchOptions = fetchOptions
48+
};
4649

4750
foreach (var organization in organizations)
4851
{

0 commit comments

Comments
 (0)