mirror of
https://gitlab.com/gabmus/envision.git
synced 2025-08-10 10:08:43 +00:00
chore: format
This commit is contained in:
parent
084c56ec2b
commit
5f9889606d
1 changed files with 1 additions and 2 deletions
|
@ -39,8 +39,7 @@ impl Git {
|
|||
fn override_remote_url(&self) -> Result<(), git2::Error> {
|
||||
if let Ok(repo) = Repository::open(&self.dir) {
|
||||
let current_remote_url = self.get_repo();
|
||||
let remote = repo
|
||||
.find_remote("origin")?;
|
||||
let remote = repo.find_remote("origin")?;
|
||||
if remote.url().unwrap_or("") != current_remote_url {
|
||||
repo.remote_set_url("origin", ¤t_remote_url)?;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue