summaryrefslogtreecommitdiff
path: root/repoNew.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2025-09-22 21:07:32 -0500
committerJeff Carr <[email protected]>2025-09-22 21:07:32 -0500
commit060c304a43ede89600e7ca46e83d4602eb12d890 (patch)
treeb750859d668c3a55ce92f116b59ad1fc2ef5660c /repoNew.go
parent6890e68af38c0fa84d5a36dfc393ddb6850edca5 (diff)
forgot to set Username on init()
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