feat: support _not_ renaming an origin
mostly this just has to do with workplace-related workflows and tools assuming that `origin` exists as a remote alias, which is unfortunate but such is life.
This commit is contained in:
		
							parent
							
								
									e841e97200
								
							
						
					
					
						commit
						691e20b07e
					
				
					 1 changed files with 3 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -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
 | 
			
		||||
    }
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue