diff options
Diffstat (limited to 'common.go')
| -rw-r--r-- | common.go | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -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 } |
