diff --git a/src/cargo/sources/git/utils.rs b/src/cargo/sources/git/utils.rs index 8fa8b7dd09b..2f54b846e3b 100644 --- a/src/cargo/sources/git/utils.rs +++ b/src/cargo/sources/git/utils.rs @@ -392,6 +392,9 @@ impl<'a> GitCheckout<'a> { }; // Fetch data from origin and reset to the head commit let refspec = "refs/heads/*:refs/heads/*"; + cargo_config + .shell() + .status("Updating", format!("git submodule `{}`", url))?; fetch(&mut repo, url, refspec, cargo_config).chain_err(|| { format!( "failed to fetch submodule `{}` from {}", diff --git a/tests/testsuite/git.rs b/tests/testsuite/git.rs index 3a94c93b18d..26c7d1e7923 100644 --- a/tests/testsuite/git.rs +++ b/tests/testsuite/git.rs @@ -878,6 +878,7 @@ fn dep_with_submodule() { .with_stderr( "\ [UPDATING] git repository [..] +[UPDATING] git submodule `file://[..]/dep2` [COMPILING] dep1 [..] [COMPILING] foo [..] [FINISHED] dev [unoptimized + debuginfo] target(s) in [..]\n", @@ -941,6 +942,7 @@ fn dep_with_bad_submodule() { let expected = format!( "\ [UPDATING] git repository [..] +[UPDATING] git submodule `file://[..]/dep2` [ERROR] failed to get `dep1` as a dependency of package `foo v0.5.0 [..]` Caused by: @@ -1182,6 +1184,7 @@ fn dep_with_changed_submodule() { p.cargo("run") .with_stderr( "[UPDATING] git repository `[..]`\n\ + [UPDATING] git submodule `file://[..]/dep2`\n\ [COMPILING] dep1 v0.5.0 ([..])\n\ [COMPILING] foo v0.5.0 ([..])\n\ [FINISHED] dev [unoptimized + debuginfo] target(s) in \ @@ -1229,6 +1232,7 @@ fn dep_with_changed_submodule() { .with_stderr("") .with_stderr(&format!( "[UPDATING] git repository `{}`\n\ + [UPDATING] git submodule `file://[..]/dep3`\n\ [UPDATING] dep1 v0.5.0 ([..]) -> #[..]\n\ ", git_project.url()