From 2a47f1e547d2cda3d85d5e6c8c78a663b139fc9f Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Sat, 13 Sep 2025 05:33:31 -0500 Subject: cleaning up obscure git cases --- common.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'common.go') 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 } -- cgit v1.2.3