File tree 2 files changed +7
-0
lines changed
2 files changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -392,6 +392,9 @@ impl<'a> GitCheckout<'a> {
392
392
} ;
393
393
// Fetch data from origin and reset to the head commit
394
394
let refspec = "refs/heads/*:refs/heads/*" ;
395
+ cargo_config
396
+ . shell ( )
397
+ . status ( "Updating" , format ! ( "git submodule `{}`" , url) ) ?;
395
398
fetch ( & mut repo, url, refspec, cargo_config) . chain_err ( || {
396
399
format ! (
397
400
"failed to fetch submodule `{}` from {}" ,
Original file line number Diff line number Diff line change @@ -878,6 +878,7 @@ fn dep_with_submodule() {
878
878
. with_stderr (
879
879
"\
880
880
[UPDATING] git repository [..]
881
+ [UPDATING] git submodule `file://[..]/dep2`
881
882
[COMPILING] dep1 [..]
882
883
[COMPILING] foo [..]
883
884
[FINISHED] dev [unoptimized + debuginfo] target(s) in [..]\n " ,
@@ -941,6 +942,7 @@ fn dep_with_bad_submodule() {
941
942
let expected = format ! (
942
943
"\
943
944
[UPDATING] git repository [..]
945
+ [UPDATING] git submodule `file://[..]/dep2`
944
946
[ERROR] failed to get `dep1` as a dependency of package `foo v0.5.0 [..]`
945
947
946
948
Caused by:
@@ -1182,6 +1184,7 @@ fn dep_with_changed_submodule() {
1182
1184
p. cargo ( "run" )
1183
1185
. with_stderr (
1184
1186
"[UPDATING] git repository `[..]`\n \
1187
+ [UPDATING] git submodule `file://[..]/dep2`\n \
1185
1188
[COMPILING] dep1 v0.5.0 ([..])\n \
1186
1189
[COMPILING] foo v0.5.0 ([..])\n \
1187
1190
[FINISHED] dev [unoptimized + debuginfo] target(s) in \
@@ -1229,6 +1232,7 @@ fn dep_with_changed_submodule() {
1229
1232
. with_stderr ( "" )
1230
1233
. with_stderr ( & format ! (
1231
1234
"[UPDATING] git repository `{}`\n \
1235
+ [UPDATING] git submodule `file://[..]/dep3`\n \
1232
1236
[UPDATING] dep1 v0.5.0 ([..]) -> #[..]\n \
1233
1237
",
1234
1238
git_project. url( )
You can’t perform that action at this time.
0 commit comments