diff options
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) |
