summaryrefslogtreecommitdiff
path: root/repoNew.go
diff options
context:
space:
mode:
Diffstat (limited to 'repoNew.go')
-rw-r--r--repoNew.go6
1 files changed, 6 insertions, 0 deletions
diff --git a/repoNew.go b/repoNew.go
index 377d35a..9f3f1f5 100644
--- a/repoNew.go
+++ b/repoNew.go
@@ -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