summaryrefslogtreecommitdiff
path: root/main.go
diff options
context:
space:
mode:
Diffstat (limited to 'main.go')
-rw-r--r--main.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/main.go b/main.go
index 703c1a4..5fe981c 100644
--- a/main.go
+++ b/main.go
@@ -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
}
}