diff options
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 |
