Skip to content

Commit

Permalink
rename url to child_remote_url
Browse files Browse the repository at this point in the history
  • Loading branch information
chris-crespo committed Jun 8, 2023
1 parent 71b37f2 commit 6343e68
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/cargo/sources/git/utils.rs
Original file line number Diff line number Diff line change
Expand Up @@ -444,7 +444,7 @@ impl<'a> GitCheckout<'a> {
// See [`git submodule add`] documentation.
//
// [`git submodule add`]: https://git-scm.com/docs/git-submodule
let url = if child_url_str.starts_with("./") || child_url_str.starts_with("../") {
let child_remote_url = if child_url_str.starts_with("./") || child_url_str.starts_with("../") {
let mut new_parent_remote_url = parent_remote_url.clone();

let mut new_path = Cow::from(parent_remote_url.path());
Expand Down Expand Up @@ -498,10 +498,10 @@ impl<'a> GitCheckout<'a> {
let reference = GitReference::Rev(head.to_string());
cargo_config
.shell()
.status("Updating", format!("git submodule `{}`", url))?;
.status("Updating", format!("git submodule `{}`", child_remote_url))?;
fetch(
&mut repo,
&url,
&child_remote_url,
&reference,
cargo_config,
RemoteKind::GitDependency,
Expand All @@ -510,7 +510,7 @@ impl<'a> GitCheckout<'a> {
format!(
"failed to fetch submodule `{}` from {}",
child.name().unwrap_or(""),
url
child_remote_url
)
})?;

Expand Down

0 comments on commit 6343e68

Please sign in to comment.