diff options
| author | Jeff Carr <[email protected]> | 2025-09-22 21:07:32 -0500 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2025-09-22 21:07:32 -0500 |
| commit | 060c304a43ede89600e7ca46e83d4602eb12d890 (patch) | |
| tree | b750859d668c3a55ce92f116b59ad1fc2ef5660c /repoNew.go | |
| parent | 6890e68af38c0fa84d5a36dfc393ddb6850edca5 (diff) | |
forgot to set Username on init()
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 |
