Skip to content

Commit fb8bfd9

Browse files
[build] Revert to https cloning for changelog
1 parent df525db commit fb8bfd9

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

build/BenchmarkDotNet.Build/Meta/Repo.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ public static class Repo
1010
public const string Owner = "dotnet";
1111
public const string Name = "BenchmarkDotNet";
1212
public const string HttpsUrlBase = $"https://github.com/{Owner}/{Name}";
13-
public const string SshGitUrl = $"git@github.com:{Owner}/{Name}.git";
13+
public const string HttpsGitUrl = $"{HttpsUrlBase}.git";
1414

1515
public const string ChangelogBranch = "docs-changelog";
1616
public const string DocsStableBranch = "docs-stable";

build/BenchmarkDotNet.Build/Runners/Changelog/ChangelogBuilder.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -244,8 +244,8 @@ private void EnsureSrcDirectoryExist(bool forceClone = false)
244244

245245
if (!context.DirectoryExists(SrcDirectory))
246246
{
247-
Log($"Cloning branch '{Repo.ChangelogBranch}' from '{Repo.SshGitUrl}' to '{SrcDirectory}'.");
248-
context.GitRunner.Clone(SrcDirectory, Repo.SshGitUrl, Repo.ChangelogBranch);
247+
Log($"Cloning branch '{Repo.ChangelogBranch}' from '{Repo.HttpsGitUrl}' to '{SrcDirectory}'.");
248+
context.GitRunner.Clone(SrcDirectory, Repo.HttpsGitUrl, Repo.ChangelogBranch);
249249
Log($"Clone completed: '{Repo.ChangelogBranch}' -> '{SrcDirectory}'.");
250250
}
251251
else

0 commit comments

Comments
 (0)