@@ -102,9 +102,7 @@ fn perform_two_revs_same_deps(mode: RepoMode) {
102
102
RepoMode :: Shallow => "build -v -Zgitoxide=fetch -Zgit=shallow-deps" ,
103
103
} ;
104
104
foo. cargo ( args)
105
- . masquerade_as_nightly_cargo ( & [
106
- "unstable features must be available for -Z gitoxide and -Z git" ,
107
- ] )
105
+ . masquerade_as_nightly_cargo ( & [ "gitoxide=fetch" , "git=shallow-deps" ] )
108
106
. run ( ) ;
109
107
assert ! ( foo. bin( "foo" ) . is_file( ) ) ;
110
108
foo. process ( & foo. bin ( "foo" ) ) . run ( ) ;
@@ -131,9 +129,7 @@ fn gitoxide_clones_registry_with_shallow_protocol_and_follow_up_with_git2_fetch(
131
129
p. cargo ( "fetch" )
132
130
. arg ( "-Zgitoxide=fetch" )
133
131
. arg ( "-Zgit=shallow-index" )
134
- . masquerade_as_nightly_cargo ( & [
135
- "unstable features must be available for -Z gitoxide and -Z git" ,
136
- ] )
132
+ . masquerade_as_nightly_cargo ( & [ "gitoxide=fetch" , "git=shallow-index" ] )
137
133
. run ( ) ;
138
134
139
135
let shallow_repo = gix:: open_opts ( find_index ( ) , gix:: open:: Options :: isolated ( ) ) ?;
@@ -214,9 +210,7 @@ fn gitoxide_clones_git_dependency_with_shallow_protocol_and_git2_is_used_for_fol
214
210
p. cargo ( "update" )
215
211
. arg ( "-Zgitoxide=fetch" )
216
212
. arg ( "-Zgit=shallow-deps" )
217
- . masquerade_as_nightly_cargo ( & [
218
- "unstable features must be available for -Z gitoxide and -Z git" ,
219
- ] )
213
+ . masquerade_as_nightly_cargo ( & [ "gitoxide=fetch" , "git=shallow-deps" ] )
220
214
. run ( ) ;
221
215
222
216
let db_clone = gix:: open_opts (
@@ -352,9 +346,7 @@ fn gitoxide_shallow_clone_followed_by_non_shallow_update() -> anyhow::Result<()>
352
346
p. cargo ( "update" )
353
347
. arg ( "-Zgitoxide=fetch" )
354
348
. arg ( "-Zgit=shallow-deps" )
355
- . masquerade_as_nightly_cargo ( & [
356
- "unstable features must be available for -Z gitoxide and -Z git" ,
357
- ] )
349
+ . masquerade_as_nightly_cargo ( & [ "gitoxide=fetch" , "git=shallow-deps" ] )
358
350
. run ( ) ;
359
351
360
352
let shallow_db_clone = gix:: open_opts (
@@ -398,7 +390,7 @@ fn gitoxide_shallow_clone_followed_by_non_shallow_update() -> anyhow::Result<()>
398
390
399
391
p. cargo ( "update" )
400
392
. arg ( "-Zgitoxide=fetch" ) // shallow-deps is omitted intentionally
401
- . masquerade_as_nightly_cargo ( & [ "unstable features must be available for -Z gitoxide" ] )
393
+ . masquerade_as_nightly_cargo ( & [ "gitoxide=fetch " ] )
402
394
. run ( ) ;
403
395
404
396
let db_clone = gix:: open_opts (
@@ -471,9 +463,7 @@ fn gitoxide_clones_registry_with_shallow_protocol_and_follow_up_fetch_maintains_
471
463
p. cargo ( "fetch" )
472
464
. arg ( "-Zgitoxide=fetch" )
473
465
. arg ( "-Zgit=shallow-index" )
474
- . masquerade_as_nightly_cargo ( & [
475
- "unstable features must be available for -Z gitoxide and -Z git" ,
476
- ] )
466
+ . masquerade_as_nightly_cargo ( & [ "gitoxide=fetch" , "git=shallow-index" ] )
477
467
. run ( ) ;
478
468
479
469
let repo = gix:: open_opts ( find_index ( ) , gix:: open:: Options :: isolated ( ) ) ?;
@@ -491,9 +481,7 @@ fn gitoxide_clones_registry_with_shallow_protocol_and_follow_up_fetch_maintains_
491
481
p. cargo ( "update" )
492
482
. arg ( "-Zgitoxide=fetch" )
493
483
. arg ( "-Zgit=shallow-index" ) // NOTE: the flag needs to be consistent or else a different index is created
494
- . masquerade_as_nightly_cargo ( & [
495
- "unstable features must be available for -Z gitoxide and -Z git" ,
496
- ] )
484
+ . masquerade_as_nightly_cargo ( & [ "gitoxide=fetch" , "git=shallow-index" ] )
497
485
. run ( ) ;
498
486
499
487
assert_eq ! (
@@ -511,9 +499,7 @@ fn gitoxide_clones_registry_with_shallow_protocol_and_follow_up_fetch_maintains_
511
499
p. cargo ( "update" )
512
500
. arg ( "-Zgitoxide=fetch" )
513
501
. arg ( "-Zgit=shallow-index" )
514
- . masquerade_as_nightly_cargo ( & [
515
- "unstable features must be available for -Z gitoxide and -Z git" ,
516
- ] )
502
+ . masquerade_as_nightly_cargo ( & [ "gitoxide=fetch" , "git=shallow-index" ] )
517
503
. run ( ) ;
518
504
519
505
assert_eq ! (
@@ -550,7 +536,7 @@ fn gitoxide_clones_registry_without_shallow_protocol_and_follow_up_fetch_uses_sh
550
536
. build ( ) ;
551
537
p. cargo ( "fetch" )
552
538
. arg ( "-Zgitoxide=fetch" )
553
- . masquerade_as_nightly_cargo ( & [ "unstable features must be available for -Z gitoxide" ] )
539
+ . masquerade_as_nightly_cargo ( & [ "gitoxide=fetch " ] )
554
540
. run ( ) ;
555
541
556
542
let repo = gix:: open_opts ( find_index ( ) , gix:: open:: Options :: isolated ( ) ) ?;
@@ -568,9 +554,7 @@ fn gitoxide_clones_registry_without_shallow_protocol_and_follow_up_fetch_uses_sh
568
554
p. cargo ( "update" )
569
555
. arg ( "-Zgitoxide=fetch" )
570
556
. arg ( "-Zgit=shallow-index" )
571
- . masquerade_as_nightly_cargo ( & [
572
- "unstable features must be available for -Z gitoxide and -Z git" ,
573
- ] )
557
+ . masquerade_as_nightly_cargo ( & [ "gitoxide=fetch" , "git=shallow-index" ] )
574
558
. run ( ) ;
575
559
576
560
let shallow_repo = gix:: open_opts (
@@ -592,9 +576,7 @@ fn gitoxide_clones_registry_without_shallow_protocol_and_follow_up_fetch_uses_sh
592
576
p. cargo ( "update" )
593
577
. arg ( "-Zgitoxide=fetch" )
594
578
. arg ( "-Zgit=shallow-index" )
595
- . masquerade_as_nightly_cargo ( & [
596
- "unstable features must be available for -Z gitoxide and -Z git" ,
597
- ] )
579
+ . masquerade_as_nightly_cargo ( & [ "gitoxide=fetch" , "git=shallow-index" ] )
598
580
. run ( ) ;
599
581
600
582
assert_eq ! (
@@ -610,7 +592,7 @@ fn gitoxide_clones_registry_without_shallow_protocol_and_follow_up_fetch_uses_sh
610
592
611
593
p. cargo ( "update" )
612
594
. arg ( "-Zgitoxide=fetch" )
613
- . masquerade_as_nightly_cargo ( & [ "unstable features must be available for -Z gitoxide" ] )
595
+ . masquerade_as_nightly_cargo ( & [ "gitoxide=fetch " ] )
614
596
. run ( ) ;
615
597
616
598
assert_eq ! (
@@ -662,9 +644,7 @@ fn gitoxide_git_dependencies_switch_from_branch_to_rev() -> anyhow::Result<()> {
662
644
p. cargo ( "check" )
663
645
. arg ( "-Zgitoxide=fetch" )
664
646
. arg ( "-Zgit=shallow-deps" )
665
- . masquerade_as_nightly_cargo ( & [
666
- "unstable features must be available for -Z gitoxide and -Z git" ,
667
- ] )
647
+ . masquerade_as_nightly_cargo ( & [ "gitoxide=fetch" , "git=shallow-deps" ] )
668
648
. run ( ) ;
669
649
670
650
let db_clone = gix:: open_opts (
@@ -695,9 +675,7 @@ fn gitoxide_git_dependencies_switch_from_branch_to_rev() -> anyhow::Result<()> {
695
675
p. cargo ( "check" )
696
676
. arg ( "-Zgitoxide=fetch" )
697
677
. arg ( "-Zgit=shallow-deps" )
698
- . masquerade_as_nightly_cargo ( & [
699
- "unstable features must be available for -Z gitoxide and -Z git" ,
700
- ] )
678
+ . masquerade_as_nightly_cargo ( & [ "gitoxide=fetch" , "git=shallow-deps" ] )
701
679
. run ( ) ;
702
680
703
681
assert ! (
@@ -746,9 +724,7 @@ fn shallow_deps_work_with_revisions_and_branches_mixed_on_same_dependency() -> a
746
724
p. cargo ( "check" )
747
725
. arg ( "-Zgitoxide=fetch" )
748
726
. arg ( "-Zgit=shallow-deps" )
749
- . masquerade_as_nightly_cargo ( & [
750
- "unstable features must be available for -Z gitoxide and -Z git" ,
751
- ] )
727
+ . masquerade_as_nightly_cargo ( & [ "gitoxide=fetch" , "git=shallow-deps" ] )
752
728
. run ( ) ;
753
729
754
730
let db_paths = glob:: glob ( paths:: home ( ) . join ( ".cargo/git/db/bar-*" ) . to_str ( ) . unwrap ( ) ) ?
@@ -789,9 +765,7 @@ fn gitoxide_clones_registry_with_shallow_protocol_and_aborts_and_updates_again(
789
765
p. cargo ( "fetch" )
790
766
. arg ( "-Zgitoxide=fetch" )
791
767
. arg ( "-Zgit=shallow-index" )
792
- . masquerade_as_nightly_cargo ( & [
793
- "unstable features must be available for -Z gitoxide and -Z git" ,
794
- ] )
768
+ . masquerade_as_nightly_cargo ( & [ "gitoxide=fetch" , "git=shallow-index" ] )
795
769
. run ( ) ;
796
770
797
771
let repo = gix:: open_opts ( find_index ( ) , gix:: open:: Options :: isolated ( ) ) ?;
@@ -814,9 +788,7 @@ fn gitoxide_clones_registry_with_shallow_protocol_and_aborts_and_updates_again(
814
788
p. cargo ( "update" )
815
789
. arg ( "-Zgitoxide=fetch" )
816
790
. arg ( "-Zgit=shallow-index" )
817
- . masquerade_as_nightly_cargo ( & [
818
- "unstable features must be available for -Z gitoxide and -Z git" ,
819
- ] )
791
+ . masquerade_as_nightly_cargo ( & [ "gitoxide=fetch" , "git=shallow-index" ] )
820
792
. run ( ) ;
821
793
822
794
assert ! ( !shallow_lock. is_file( ) , "the repository was re-initialized" ) ;
0 commit comments