summaryrefslogtreecommitdiff
path: root/repoNew.go
diff options
context:
space:
mode:
Diffstat (limited to 'repoNew.go')
-rw-r--r--repoNew.go7
1 files changed, 6 insertions, 1 deletions
diff --git a/repoNew.go b/repoNew.go
index 9f3f1f5..b3825b3 100644
--- a/repoNew.go
+++ b/repoNew.go
@@ -224,7 +224,12 @@ func (f *Forge) AddFullPath(fulldir string) *gitpb.Repo {
return nil
}
-func (f *Forge) FindByGoPath(gopath string) *gitpb.Repo {
+// deprecate
+// func (f *Forge) FindByGoPath(gopath string) *gitpb.Repo {
+// return f.FindByNamespace(gopath)
+// }
+
+func (f *Forge) FindByNamespace(gopath string) *gitpb.Repo {
fullpath := filepath.Join(f.Config.ReposDir, gopath)
return f.Repos.FindByFullPath(fullpath)
}