summaryrefslogtreecommitdiff
path: root/common.go
diff options
context:
space:
mode:
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
}