fix(ci): only set local url instead of insteadOf
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
Signed-off-by: kjuulh <contact@kjuulh.io>
This commit is contained in:
parent
07c593bb08
commit
e2f1d79031
@ -324,19 +324,15 @@ Host *
|
||||
.await?;
|
||||
|
||||
let res = if remote_url.starts_with("http") {
|
||||
res.with_exec(vec![
|
||||
"git",
|
||||
"config",
|
||||
"--global",
|
||||
&format!(
|
||||
"url.ssh://git@{}/.insteadOf",
|
||||
let new_remote_url = format!(
|
||||
"ssh://git@{}",
|
||||
remote_url
|
||||
.trim()
|
||||
.trim_start_matches("https://")
|
||||
.trim_start_matches("http://")
|
||||
),
|
||||
remote_url.trim(),
|
||||
])
|
||||
);
|
||||
println!("new remote_url: {}", new_remote_url);
|
||||
res.with_exec(vec!["git", "remote", "set-url", "origin", &new_remote_url])
|
||||
} else {
|
||||
res
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user