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 /repoNew.go | |
| parent | 6c3162f7ce42a85afcff0b984fe6972f96fd3c8a (diff) | |
stop using GoSrc()
Diffstat (limited to 'repoNew.go')
| -rw-r--r-- | repoNew.go | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -14,7 +14,7 @@ import ( ) func (f *Forge) NewGoRepo(gopath string, url string) (*gitpb.Repo, error) { - fullpath := filepath.Join(f.GetGoSrc(), gopath) + fullpath := filepath.Join(f.Config.ReposDir, gopath) test := f.Repos.FindByFullPath(fullpath) if test != nil { return test, nil @@ -215,7 +215,7 @@ func (f *Forge) AddFullPath(fulldir string) *gitpb.Repo { } func (f *Forge) FindByGoPath(gopath string) *gitpb.Repo { - fullpath := filepath.Join(f.GetGoSrc(), gopath) + fullpath := filepath.Join(f.Config.ReposDir, gopath) return f.Repos.FindByFullPath(fullpath) } @@ -242,6 +242,6 @@ func (f *Forge) FindAnyPath(dir string) *gitpb.Repo { } func (f *Forge) DeleteByGoPath(gopath string) bool { - fullpath := filepath.Join(f.GetGoSrc(), gopath) + fullpath := filepath.Join(f.Config.ReposDir, gopath) return f.Repos.DeleteByFullPath(fullpath) } |
