Skip to content

Commit 567a2d2

Browse files
committed
cmd/gerritbot: use https:// for cloning
GitHub has shut down git:// as of yesterday; see https://github.blog/2021-09-01-improving-git-protocol-security-github/. Looking at https://api.github.com/repos/golang/go, the clone URL should be better. Fixes golang/go#51722. Change-Id: I629d6c8338df1c5633ae4a6a641d57be02e90fc2 Reviewed-on: https://go-review.googlesource.com/c/build/+/393375 Trust: Heschi Kreinick <[email protected]> Run-TryBot: Heschi Kreinick <[email protected]> TryBot-Result: Gopher Robot <[email protected]> Reviewed-by: Dmitri Shuralyov <[email protected]>
1 parent 7d66fe8 commit 567a2d2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cmd/gerritbot/gerritbot.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -659,7 +659,7 @@ func (b *bot) importGerritChangeFromPR(ctx context.Context, pr *github.PullReque
659659
if _, err := os.Stat(repoDir); os.IsNotExist(err) {
660660
cmds := []*exec.Cmd{
661661
exec.Command("git", "clone", "--bare", gerritRepo, repoDir),
662-
exec.Command("git", "-C", repoDir, "remote", "add", "github", githubRepo.GetGitURL()),
662+
exec.Command("git", "-C", repoDir, "remote", "add", "github", githubRepo.GetCloneURL()),
663663
}
664664
for _, c := range cmds {
665665
if err := runCmd(c); err != nil {

0 commit comments

Comments
 (0)