|
|
@@ -494,7 +494,7 @@ func GetRate(ctx *context.Context) { |
|
|
|
} |
|
|
|
|
|
|
|
func downloadCode(repo *models.Repository, codePath string) error { |
|
|
|
if err := git.Clone(repo.RepoPath(), codePath, git.CloneRepoOptions{}); err != nil { |
|
|
|
if err := git.Clone(repo.CloneLink().HTTPS, codePath, git.CloneRepoOptions{}); err != nil { |
|
|
|
log.Error("Failed to clone repository: %s (%v)", repo.FullName(), err) |
|
|
|
return err |
|
|
|
} |
|
|
|