Skip to content

Commit

Permalink
Merge pull request #65 from vitessio/fix-how-we-clone
Browse files Browse the repository at this point in the history
  • Loading branch information
frouioui authored Oct 9, 2023
2 parents c9deca8 + d3ddfef commit 5e3ab4c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion go/git/repo.go
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ func (r *Repo) Clean(ctx context.Context) error {
}

func (r *Repo) Clone(ctx context.Context) error {
_, err := shell.NewContext(ctx, "git", "clone", fmt.Sprintf("https://github.com/%s/%s.git", r.Owner, r.Name), r.LocalDir).Output()
_, err := shell.NewContext(ctx, "git", "clone", fmt.Sprintf("git@github.com:%s/%s.git", r.Owner, r.Name), r.LocalDir).Output()
if err != nil && !strings.Contains(err.Error(), "already exists and is not an empty directory") {
return err
}
Expand Down

0 comments on commit 5e3ab4c

Please sign in to comment.