diff options
| -rw-r--r-- | argv.go | 1 | ||||
| -rw-r--r-- | doClone.go | 13 | ||||
| -rw-r--r-- | resources/repomap | 22 |
3 files changed, 25 insertions, 11 deletions
@@ -51,6 +51,7 @@ type DebianCmd struct { type CloneCmd struct { Check *EmptyCmd `arg:"subcommand:check" help:"check urls against the repomap"` + Fix *EmptyCmd `arg:"subcommand:fix" help:"fix urls from the repomap"` Repomap *EmptyCmd `arg:"subcommand:repomap" help:"make updated repomap"` DryRun bool `arg:"--dry-run" help:"show what has not yet come to pass"` Verbose bool `arg:"--verbose" help:"be loud about it"` @@ -53,6 +53,19 @@ func doClone() error { log.Info("url wrong?", repo.URL, parts[1]) continue } + if argv.Clone.Fix != nil { + if repo == nil { + log.Info("don't have repo", namespace) + continue + } + if repo.URL == parts[1] { + continue + } + cmd := []string{"git", "remote", "set-url", "origin", parts[1]} + log.Info("url wrong?", cmd) + repo.RunVerbose(cmd) + continue + } if repo != nil { if argv.Verbose { log.Info("already have", repo.FullPath) diff --git a/resources/repomap b/resources/repomap index abb6a99..c656a70 100644 --- a/resources/repomap +++ b/resources/repomap @@ -12,11 +12,11 @@ go.wit.com/apps/autogenpb https://cgit.grid.wit.com/jcarr/autogenpb autogen Mars go.wit.com/apps/go-deb https://cgit.grid.wit.com/jcarr/go-deb Turns anything into a .deb package go.wit.com/apps/virtigo https://cgit.grid.wit.com/jcarr/virtigo control your homelab cluster (pre-alpha) go.wit.com/apps/go-mod-clean https://cgit.grid.wit.com/jcarr/go-mod-clean clean go.mod and go.sum files before publishing -go.wit.com/apps/argv github.com/alexflint/argv shell autocomplete +go.wit.com/apps/argv https://github.com/alexflint/argv shell autocomplete # go.wit.com/apps/autotypist gitea.wit.com/jcarr/autotypist go.wit.com/apps/control-panel-dns https://cgit.grid.wit.com/jcarr/control-panel-dns go.wit.com/apps/networkQuality https://github.com/wit-go/networkQuality -go.wit.com/apps/regex https://gitea.wit.com/jcarr/regex.git +go.wit.com/apps/regex https://cgit.grid.wit.com/jcarr/regex go.wit.com/apps/guireleaser https://cgit.grid.wit.com/jcarr/guireleaser go.wit.com/apps/control-panel-droplet https://cgit.grid.wit.com/wit/control-panel-digitalocean go.wit.com/apps/control-panel-cloudflare https://cgit.grid.wit.com/wit/control-panel-cloudflare @@ -24,13 +24,13 @@ go.wit.com/apps/control-panel-vpn https://cgit.grid.wit.com/jcarr/control-panel- go.wit.com/apps/zookeeper https://cgit.grid.wit.com/jcarr/zookeeper go.wit.com/apps/utils/go-gui-toolkits https://cgit.grid.wit.com/gui/go-gui-toolkits go.wit.com/apps/utils/gowebd https://cgit.grid.wit.com/jcarr/gowebd generates this website: go.wit.com -go.wit.com/apps/utils/fixup https://gitea.wit.com/jcarr/fixup a tool to make riscv sdcards +go.wit.com/apps/utils/fixup https://cgit.grid.wit.com/jcarr/fixup a tool to make riscv sdcards go.wit.com/apps/utils/forged https://cgit.grid.wit.com/jcarr/forged go.wit.com/apps/utils/powerpaneld https://cgit.grid.wit.com/jcarr/powerpaneld go.wit.com/apps/utils/virtigoctl https://cgit.grid.wit.com/jcarr/virtigoctl -go.wit.com/apps/utils/startxplacement https://gitea.wit.com/jcarr/xstartplacement +go.wit.com/apps/utils/startxplacement https://cgit.grid.wit.com/jcarr/xstartplacement go.wit.com/apps/utils/wit-utils https://cgit.grid.wit.com/jcarr/wit-utils -go.wit.com/apps/utils/wit-test gitea.wit.com/jcarr/wit-test +go.wit.com/apps/utils/wit https://cgit.grid.wit.com/jcarr/wit-test go.wit.com/apps/utils/going2git https://cgit.grid.wit.com/jcarr/going2git # GO plugin GUI demos @@ -58,7 +58,7 @@ go.wit.com/lib/gui/logsettings https://cgit.grid.wit.com/jcarr/logsettings go.wit.com/lib/gui/digitalocean https://cgit.grid.wit.com/gui/digitalocean import / export droplets from your virtigo private cloud go.wit.com/lib/gui/cloudflare https://cgit.grid.wit.com/gui/cloudflare go.wit.com/lib/gui/gowit https://cgit.grid.wit.com/jcarr/gowit -go.wit.com/lib/gui/prep https://gitea.wit.com/jcarr/guiprep.git +go.wit.com/lib/gui/prep https://cgit.grid.wit.com/jcarr/prep go.wit.com/lib/gui/shell https://cgit.grid.wit.com/wit/shell go.wit.com/lib/virtigolib https://cgit.grid.wit.com/jcarr/virtigolib libvirtxml <-> protobuf for virtigo go.wit.com/lib/daemons/virtigod https://cgit.grid.wit.com/jcarr/virtigod the virtigo hypervisor daemon @@ -66,19 +66,19 @@ go.wit.com/lib/daemons/zood https://cgit.grid.wit.com/jcarr/zood a simple daemon go.wit.com/lib/daemons/gus https://cgit.grid.wit.com/jcarr/gus "Phantastic Gus" your network squirrel go.wit.com/lib/libgit2 https://cgit.grid.wit.com/jcarr/git2go # go.wit.com/lib/libme gitea.wit.com/jcarr/libme -go.wit.com/lib/libgit2go gitea.wit.com/jcarr/git2go fixed for libgit2 v1.9 (works on debian sid) +go.wit.com/lib/libgit2go https://cgit.grid.wit.com/jcarr/git2go fixed for libgit2 v1.9 (works on debian sid) go.wit.com/lib/fhelp https://cgit.grid.wit.com/jcarr/fhelp go.wit.com/lib/http/ginpb https://cgit.grid.wit.com/jcarr/ginpb go.wit.com/lib/hostname https://cgit.grid.wit.com/jcarr/hostname os.Hostname() wrapper -go.wit.com/lib/cobol https://gitea.wit.com/jcarr/cobol.git -go.wit.com/lib/config https://gitea.wit.com/jcarr/pbconfig.git use .proto config files in your applications +go.wit.com/lib/cobol https://cgit.grid.wit.com/jcarr/cobol +go.wit.com/lib/config https://cgit.grid.wit.com/go.wit.com/lib/config.git use .proto config files in your applications go.wit.com/lib/xgb https://github.com/jezek/xgb # protobuf libraries go.wit.com/lib/protobuf/bugpb https://cgit.grid.wit.com/jcarr/bugpb protobuf for git-bug go.wit.com/lib/protobuf/forgepb https://cgit.grid.wit.com/jcarr/forgepb protobuf for forge -go.wit.com/lib/protobuf/chatpb https://gitea.wit.com/jcarr/chatpb.git protobuf for Google's Gemini -go.wit.com/lib/protobuf/httppb https://gitea.wit.com/jcarr/httppb.git protobuf for http headers +go.wit.com/lib/protobuf/chatpb https://cgit.grid.wit.com/jcarr/chatpb protobuf for Google's Gemini +go.wit.com/lib/protobuf/httppb https://cgit.grid.wit.com/jcarr/httppb protobuf for http headers go.wit.com/lib/protobuf/gitpb https://cgit.grid.wit.com/jcarr/gitpb protobuf for git repos go.wit.com/lib/protobuf/guipb https://cgit.grid.wit.com/jcarr/guipb protobuf for the GUI toolkits go.wit.com/lib/protobuf/virtpb https://cgit.grid.wit.com/jcarr/virtpb protobuf for virtigo |
