summaryrefslogtreecommitdiff
path: root/common.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2025-09-13 05:33:31 -0500
committerJeff Carr <[email protected]>2025-09-13 05:33:31 -0500
commit2a47f1e547d2cda3d85d5e6c8c78a663b139fc9f (patch)
tree430df61927de88fcc1be5dfeb7a05e224b30661f /common.go
parent719287c3bfa349c74c2ce86b01299c97169ec3a8 (diff)
cleaning up obscure git casesv0.0.127
Diffstat (limited to 'common.go')
-rw-r--r--common.go5
1 files changed, 4 insertions, 1 deletions
diff --git a/common.go b/common.go
index 4c6dee6..11c2c6d 100644
--- a/common.go
+++ b/common.go
@@ -14,7 +14,10 @@ func (repo *Repo) SetMasterBranchName(s string) {
func (repo *Repo) GetGoPath() string {
if repo.GoInfo == nil {
- return ""
+ return repo.Namespace
+ }
+ if repo.GoInfo.GoPath == "" {
+ return repo.Namespace
}
return repo.GoInfo.GoPath
}