diff options
Diffstat (limited to 'repoNew.go')
| -rw-r--r-- | repoNew.go | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -164,6 +164,9 @@ func (f *Forge) VerifyBranchNames(repo *gitpb.Repo) { if repo.GetUserBranchName() == "" { uname := f.configUserBranchName(repo) + if uname == "" { + log.Info("configUserBranchName() ERROR: failed with blank") + } if repo.IsBranch(uname) { repo.SetUserBranchName(uname) } else { @@ -189,6 +192,9 @@ func (f *Forge) configUserBranchName(repo *gitpb.Repo) string { if uname != "" { return uname } + if f.Config.Username == "" { + // something is wrong! + } // use the os.Username uname = f.Config.Username |
