summaryrefslogtreecommitdiff
path: root/main.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2025-06-29 02:48:47 -0500
committerJeff Carr <[email protected]>2025-06-29 02:48:47 -0500
commit2616d0d8b45f98b0946b08bb15d047753d47949d (patch)
tree6a032069eef1073f62ee559564129cde2070b10c /main.go
parent0219d69bfb05358e7d3d5a615dbf275b93a48dae (diff)
add a way to debug protobuf Marshal() errorsv0.22.120v0.22.119
Diffstat (limited to 'main.go')
-rw-r--r--main.go6
1 files changed, 6 insertions, 0 deletions
diff --git a/main.go b/main.go
index 2cf2ed9..faed9c5 100644
--- a/main.go
+++ b/main.go
@@ -64,6 +64,12 @@ func main() {
}
me.urlbase = strings.Trim(me.urlbase, "/") // track down why trailing '/' makes http POST not work
+ // internally debugging can be triggered here before Init()
+ if argv.Debug != nil {
+ doDebug()
+ okExit("")
+ }
+
// load the ~/.config/forge/ config
me.forge = forgepb.Init()
me.found = new(gitpb.Repos)