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