mirror of
https://gitlab.com/gabmus/envision.git
synced 2025-08-13 11:38:53 +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> {
|
fn override_remote_url(&self) -> Result<(), git2::Error> {
|
||||||
if let Ok(repo) = Repository::open(&self.dir) {
|
if let Ok(repo) = Repository::open(&self.dir) {
|
||||||
let current_remote_url = self.get_repo();
|
let current_remote_url = self.get_repo();
|
||||||
let remote = repo
|
let remote = repo.find_remote("origin")?;
|
||||||
.find_remote("origin")?;
|
|
||||||
if remote.url().unwrap_or("") != current_remote_url {
|
if remote.url().unwrap_or("") != current_remote_url {
|
||||||
repo.remote_set_url("origin", ¤t_remote_url)?;
|
repo.remote_set_url("origin", ¤t_remote_url)?;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue