diff options
| -rw-r--r-- | init.go | 9 |
1 files changed, 5 insertions, 4 deletions
@@ -76,15 +76,16 @@ func initFromConfig(cfg *ForgeConfigs) *Forge { } if !shell.Exists(f.Config.ReposPB) { - if f.Config.Mode == ForgeMode_NEWUSER { - // new user. drop back to main() for an introduction - return f - } // create an initial repos.pb file // panic() here? // warning? // (probably not. it's just the repos.pb cache file f.Repos = gitpb.NewRepos() f.Repos.Filename = f.Config.ReposPB f.Repos.Save() + + if f.Config.Mode == ForgeMode_NEWUSER { + // new user. drop back to main() for an introduction + return f + } } f.Repos = gitpb.NewRepos() |
