summaryrefslogtreecommitdiff
path: root/main.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2025-01-30 06:21:26 -0600
committerJeff Carr <[email protected]>2025-01-30 06:21:26 -0600
commite7d71c78e22426e3b26b9d89b8ac2a3c02faded6 (patch)
tree059993878ed1c10848b7ce022db553d55e63c446 /main.go
parenta76028dd23a0f43060e56098a5b0e56ae9c11bbb (diff)
GetPatchsets work
Diffstat (limited to 'main.go')
-rw-r--r--main.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/main.go b/main.go
index e7b5056..085e14b 100644
--- a/main.go
+++ b/main.go
@@ -54,6 +54,10 @@ func main() {
if me.urlbase == "" {
me.urlbase = "https://go.wit.com/"
}
+ if os.Getenv("FORGE_URL") != "" {
+ me.urlbase = os.Getenv("FORGE_URL")
+ log.Info("got forge url", me.urlbase)
+ }
me.urlbase = strings.Trim(me.urlbase, "/") // track down why trailing '/' makes http POST not work
// load the ~/.config/forge/ config