diff options
| author | Jeff Carr <[email protected]> | 2025-10-20 13:21:03 -0500 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2025-10-20 13:21:03 -0500 |
| commit | 69b5038c58e6a8487f22aeaf28eddec5c785c283 (patch) | |
| tree | 72b9910c32a803d8c7f3bffc0f5d7175516d39b0 /clone.go | |
| parent | 2ecc340541f88d4c1cbe437efe79a6fcfdbf5499 (diff) | |
probably better. notsure
Diffstat (limited to 'clone.go')
| -rw-r--r-- | clone.go | 9 |
1 files changed, 7 insertions, 2 deletions
@@ -14,6 +14,11 @@ import ( "go.wit.com/log" ) +func getClonePathFromMode() string { + panic("goclonePathFromMode() nope") + return "" +} + // will not violate filesystem namespace // always returns the path or a parent path // @@ -29,7 +34,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.Config.ReposDir, gopath) + fullpath := filepath.Join(getClonePathFromMode(), gopath) if pb := f.FindAnyPath(fullpath); pb != nil { // repo already exists return pb, nil @@ -156,7 +161,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.Config.ReposDir, gopath) + fullpath := filepath.Join(getClonePathFromMode(), gopath) basedir, newdir := filepath.Split(fullpath) // clone the URL directly |
