@@ -948,13 +948,6 @@ fn dep_with_bad_submodule() {
948
948
None ,
949
949
)
950
950
. unwrap ( ) ;
951
- std:: fs:: remove_file (
952
- repo. path ( )
953
- . join ( "objects" )
954
- . join ( & commit. id ( ) . to_string ( ) [ ..2 ] )
955
- . join ( & commit. id ( ) . to_string ( ) [ 2 ..] ) ,
956
- )
957
- . unwrap ( ) ;
958
951
959
952
let p = project
960
953
. file (
@@ -979,36 +972,9 @@ fn dep_with_bad_submodule() {
979
972
"extern crate dep1; pub fn foo() { dep1::dep() }" ,
980
973
)
981
974
. build ( ) ;
982
- let expected = if cargo_uses_gitoxide ( ) {
983
- format ! (
984
- "\
985
- [UPDATING] git repository [..]
986
- [UPDATING] git submodule `file://[..]/dep2`
987
- [ERROR] failed to get `dep1` as a dependency of package `foo v0.5.0 [..]`
988
-
989
- Caused by:
990
- failed to load source for dependency `dep1`
991
-
992
- Caused by:
993
- Unable to update {}
994
-
995
- Caused by:
996
- failed to update submodule `src`
997
975
998
- Caused by:
999
- failed to fetch submodule `src` from [..]
1000
-
1001
- Caused by:
1002
- Could not decode server reply
1003
-
1004
- Caused by:
1005
- upload-pack: not our ref [..]
1006
- " ,
1007
- path2url( git_project. root( ) )
1008
- )
1009
- } else {
1010
- format ! (
1011
- "\
976
+ let expected = format ! (
977
+ "\
1012
978
[UPDATING] git repository [..]
1013
979
[UPDATING] git submodule `file://[..]/dep2`
1014
980
[ERROR] failed to get `dep1` as a dependency of package `foo v0.5.0 [..]`
@@ -1023,14 +989,10 @@ Caused by:
1023
989
failed to update submodule `src`
1024
990
1025
991
Caused by:
1026
- failed to fetch submodule `src` from [..]
1027
-
1028
- Caused by:
1029
- target OID for the reference doesn't exist on the repository; class=Reference (4)
992
+ object not found - no match for id [..]
1030
993
" ,
1031
- path2url( git_project. root( ) )
1032
- )
1033
- } ;
994
+ path2url( git_project. root( ) )
995
+ ) ;
1034
996
1035
997
p. cargo ( "check" )
1036
998
. with_stderr ( expected)
0 commit comments