summaryrefslogtreecommitdiff
path: root/clone.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2025-10-22 09:18:26 -0500
committerJeff Carr <[email protected]>2025-10-22 09:18:26 -0500
commit98f656afbc699e2c3f6cf47cdb88af31b46134a8 (patch)
tree00162a7a872a76b99a225df84898d5129e2ee0a7 /clone.go
parentf945380a98f0b52a4b5d1614295700a92fdd5f2b (diff)
Diffstat (limited to 'clone.go')
-rw-r--r--clone.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/clone.go b/clone.go
index 3e9a7f2..5b3453e 100644
--- a/clone.go
+++ b/clone.go
@@ -7,6 +7,7 @@ import (
"path/filepath"
"strings"
+ "go.wit.com/lib/ENV"
"go.wit.com/lib/protobuf/gitpb"
"go.wit.com/log"
)
@@ -68,7 +69,7 @@ func clone(gopath string) (*gitpb.Repo, error) {
gopath = CleanRepoURL(gopath)
os.Setenv("REPO_AUTO_CLONE", "true")
// pb, _ := me.forge.NewGoPath(gopath)
- check := me.forge.FindAnyPath(filepath.Join(me.forge.Config.ReposDir, gopath))
+ check := me.forge.FindAnyPath(filepath.Join(ENV.Get("gopath"), gopath))
if check != nil {
if check.IsValidDir() {
// repo already exists and is valid