File tree Expand file tree Collapse file tree 1 file changed +3
-8
lines changed Expand file tree Collapse file tree 1 file changed +3
-8
lines changed Original file line number Diff line number Diff line change @@ -34,15 +34,10 @@ impl RepoMode {
3434
3535#[ cargo_test]
3636fn gitoxide_fetch_shallow_dep_two_revs ( ) {
37- fetch_dep_two_revs ( Backend :: Gitoxide , RepoMode :: Shallow )
37+ fetch_dep_two_revs ( Backend :: Gitoxide )
3838}
3939
40- #[ cargo_test]
41- fn git2_fetch_complete_dep_two_revs ( ) {
42- fetch_dep_two_revs ( Backend :: Git2 , RepoMode :: Complete )
43- }
44-
45- fn fetch_dep_two_revs ( backend : Backend , mode : RepoMode ) {
40+ fn fetch_dep_two_revs ( backend : Backend ) {
4641 let bar = git:: new ( "meta-dep" , |project| {
4742 project
4843 . file ( "Cargo.toml" , & basic_manifest ( "bar" , "0.0.0" ) )
@@ -122,7 +117,7 @@ fn fetch_dep_two_revs(backend: Backend, mode: RepoMode) {
122117
123118 foo. cargo ( "check -v" )
124119 . arg_line ( backend. to_arg ( ) )
125- . arg_line ( mode . to_deps_arg ( ) )
120+ . arg_line ( RepoMode :: Shallow . to_deps_arg ( ) )
126121 . env ( "__CARGO_USE_GITOXIDE_INSTEAD_OF_GIT2" , "0" ) // respect `backend`
127122 . masquerade_as_nightly_cargo ( & [ "gitoxide=fetch" , "git=shallow-deps" ] )
128123 . run ( ) ;
You can’t perform that action at this time.
0 commit comments