From 37aeae9b8ff49f42a135a1ff4255835889f2eeba Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Fri, 3 Oct 2025 12:15:48 -0500 Subject: a few more updates to repomap --- doClone.go | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'doClone.go') diff --git a/doClone.go b/doClone.go index 6ab28ee..7b43673 100644 --- a/doClone.go +++ b/doClone.go @@ -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) -- cgit v1.2.3