diff --git a/src/main.rs b/src/main.rs index 100044f..0ba06df 100644 --- a/src/main.rs +++ b/src/main.rs @@ -92,7 +92,9 @@ impl Workspace { ) .expect(&format!("couldn't clone repo: {}", repo_name)); - repo.remote_rename("origin", &self.origin.name).unwrap(); + if &self.origin.name != "origin" { + repo.remote_rename("origin", &self.origin.name).unwrap(); + } repo }