diff options
Diffstat (limited to 'main.go')
| -rw-r--r-- | main.go | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -84,12 +84,12 @@ func findPwdRepo() *gitpb.Repo { // attempt to use the working directory // this is probably what happens most of the time pwd, _ := os.Getwd() - if strings.HasPrefix(pwd, forge.GetGoSrc()) { - gopath := strings.TrimPrefix(pwd, forge.GetGoSrc()) + if strings.HasPrefix(pwd, forge.Config.ReposDir) { + gopath := strings.TrimPrefix(pwd, forge.Config.ReposDir) gopath = strings.Trim(gopath, "/") check = forge.FindByGoPath(gopath) if check != nil { - log.Info(check.GetGoPath(), "was found ok in forge") + log.Info(check.Namespace, "was found ok in forge") return check } } |
