diff options
| author | Jeff Carr <[email protected]> | 2025-09-11 22:14:57 -0500 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2025-09-11 22:14:57 -0500 |
| commit | eda91e3af66e4c894f35c13a393a01238464b750 (patch) | |
| tree | 10135af0d368e2d68d267931673996bd9c8ee850 /clone.go | |
| parent | 6c3162f7ce42a85afcff0b984fe6972f96fd3c8a (diff) | |
stop using GoSrc()
Diffstat (limited to 'clone.go')
| -rw-r--r-- | clone.go | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -29,7 +29,7 @@ func (f *Forge) GoClone(gopath string) (*gitpb.Repo, error) { // will match /root/go/src/go.wit.com/apps/go-clone/something/inside // and return the *gitpb.Repo for "go.wit.com/apps/go-clone" - fullpath := filepath.Join(f.goSrc, gopath) + fullpath := filepath.Join(f.Config.ReposDir, gopath) if pb := f.FindAnyPath(fullpath); pb != nil { // repo already exists return pb, nil @@ -156,7 +156,7 @@ func (f *Forge) goClonePop(gopath string) (*gitpb.Repo, error) { func (f *Forge) urlClone(gopath, giturl string) (*gitpb.Repo, error) { var err error - fullpath := filepath.Join(f.goSrc, gopath) + fullpath := filepath.Join(f.Config.ReposDir, gopath) basedir, newdir := filepath.Split(fullpath) // clone the URL directly |
