always use https for git clone
This commit is contained in:
parent
2866815e3c
commit
9d13c972e4
4
clone.go
4
clone.go
|
@ -128,13 +128,13 @@ func Clone(workdir, gopath string) error {
|
||||||
basedir := strings.TrimSuffix(fullpath, dirname)
|
basedir := strings.TrimSuffix(fullpath, dirname)
|
||||||
|
|
||||||
var err error
|
var err error
|
||||||
url := "http://" + gopath
|
url := "https://" + gopath
|
||||||
log.Info("trying git clone")
|
log.Info("trying git clone")
|
||||||
log.Info("gopath =", gopath)
|
log.Info("gopath =", gopath)
|
||||||
|
|
||||||
|
|
||||||
// try a direct git clone against the 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 {
|
if err = cloneActual(dirname, basedir, url); err == nil {
|
||||||
// git clone worked!
|
// git clone worked!
|
||||||
return nil
|
return nil
|
||||||
|
|
Loading…
Reference in New Issue