diff options
| author | Jeff Carr <[email protected]> | 2025-10-22 09:18:42 -0500 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2025-10-22 09:18:42 -0500 |
| commit | 1b2ddac942d525bb543fe21b00b4abf692f599fb (patch) | |
| tree | 8e72c1e14a7b21de81144ddb0a1bcd838fc6c9c7 /main.go | |
| parent | 9836434ac9ac1313e5fd3ce4675fbf6dac4421e2 (diff) | |
step1
Diffstat (limited to 'main.go')
| -rw-r--r-- | main.go | 13 |
1 files changed, 11 insertions, 2 deletions
@@ -8,6 +8,7 @@ import ( "path/filepath" "time" + "go.wit.com/lib/ENV" "go.wit.com/lib/fhelp" "go.wit.com/lib/gadgets" "go.wit.com/lib/gui/shell" @@ -30,7 +31,7 @@ func main() { fhelp.CheckGoModCleanExit() // me.forge.ConfigPrintTable() - os.Setenv("REPO_WORK_PATH", me.forge.Config.ReposDir) + os.Setenv("REPO_WORK_PATH", ENV.Get("gopath")) // save the ENV var here me.releaseReasonS = os.Getenv("GUIRELEASE_REASON") @@ -81,7 +82,15 @@ func main() { me.Disable() // todo: add this to forgepb - me.startRepo = me.forge.FindWorkingDirRepo() + // me.startRepo = me.forge.FindWorkingDirRepo() + wd, err := os.Getwd() + if err != nil { + me.argv.BadExit("your current directory does not exist err=", err) + } + me.startRepo, err = gitpb.NewRepo(wd) + if err != nil { + me.argv.BadExit("is this really a .git directory? err=", err) + } if _, count, _, err := me.forge.IsEverythingOnMaster(); err != nil { log.Info("not everything is on the master branch (", count, "repos)") |
