summaryrefslogtreecommitdiff
path: root/doClone.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2025-10-03 12:15:48 -0500
committerJeff Carr <[email protected]>2025-10-03 12:15:48 -0500
commit37aeae9b8ff49f42a135a1ff4255835889f2eeba (patch)
treed517229fabacc01c1e2faeb4b89b229632b89723 /doClone.go
parent23f5a97c6149249f2b79e737e4f5f1f9315d17d9 (diff)
a few more updates to repomap
Diffstat (limited to 'doClone.go')
-rw-r--r--doClone.go13
1 files changed, 13 insertions, 0 deletions
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)