diff options
| author | Jeff Carr <[email protected]> | 2025-10-03 12:15:48 -0500 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2025-10-03 12:15:48 -0500 |
| commit | 37aeae9b8ff49f42a135a1ff4255835889f2eeba (patch) | |
| tree | d517229fabacc01c1e2faeb4b89b229632b89723 /doClone.go | |
| parent | 23f5a97c6149249f2b79e737e4f5f1f9315d17d9 (diff) | |
a few more updates to repomap
Diffstat (limited to 'doClone.go')
| -rw-r--r-- | doClone.go | 13 |
1 files changed, 13 insertions, 0 deletions
@@ -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) |
