diff options
| author | Jeff Carr <[email protected]> | 2025-09-11 22:21:25 -0500 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2025-09-11 22:21:25 -0500 |
| commit | bafdfb766d0a43bbea38ee568be109d7d40d6628 (patch) | |
| tree | d7e6fb8cc155776343fd6ec8119b807f78144333 /main.go | |
| parent | cdca120140615cbd99f8fd6fe48ac2be6fc406f4 (diff) | |
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 } } |
