always use https for git clone

This commit is contained in:
Jeff Carr 2024-11-24 23:35:36 -06:00
parent 2866815e3c
commit 9d13c972e4
1 changed files with 2 additions and 2 deletions

View File

@ -128,13 +128,13 @@ func Clone(workdir, gopath string) error {
basedir := strings.TrimSuffix(fullpath, dirname)
var err error
url := "http://" + gopath
url := "https://" + gopath
log.Info("trying git clone")
log.Info("gopath =", gopath)
// try a direct git clone against the gopath
// cloneActual("helloworld", "/home/jcarr/go/src/go.wit.com/apps", "http://go.wit.com/apps/helloworld")
// cloneActual("helloworld", "/home/jcarr/go/src/go.wit.com/apps", "https://go.wit.com/apps/helloworld")
if err = cloneActual(dirname, basedir, url); err == nil {
// git clone worked!
return nil