@@ -129,7 +129,7 @@ fn fetch_two_revs_same_deps(backend: Backend, mode: RepoMode) {
129
129
}
130
130
131
131
#[ cargo_test]
132
- fn gitoxide_clones_registry_with_shallow_protocol_and_follow_up_with_git2_fetch (
132
+ fn gitoxide_fetch_registry_with_shallow_protocol_and_follow_up_with_git2_fetch (
133
133
) -> anyhow:: Result < ( ) > {
134
134
Package :: new ( "bar" , "1.0.0" ) . publish ( ) ;
135
135
let p = project ( )
@@ -160,7 +160,7 @@ fn gitoxide_clones_registry_with_shallow_protocol_and_follow_up_with_git2_fetch(
160
160
. all( ) ?
161
161
. count( ) ,
162
162
1 ,
163
- "shallow clones always start at depth of 1 to minimize download size"
163
+ "shallow fetch always start at depth of 1 to minimize download size"
164
164
) ;
165
165
assert ! ( shallow_repo. is_shallow( ) ) ;
166
166
@@ -179,14 +179,14 @@ fn gitoxide_clones_registry_with_shallow_protocol_and_follow_up_with_git2_fetch(
179
179
. all( ) ?
180
180
. count( ) ,
181
181
3 ,
182
- "an entirely new repo was cloned which is never shallow"
182
+ "an entirely new repo was fetched which is never shallow"
183
183
) ;
184
184
assert ! ( !repo. is_shallow( ) ) ;
185
185
Ok ( ( ) )
186
186
}
187
187
188
188
#[ cargo_test]
189
- fn gitoxide_clones_git_dependency_with_shallow_protocol_and_git2_is_used_for_followup_fetches (
189
+ fn gitoxide_fetch_git_dependency_with_shallow_protocol_and_git2_is_used_for_followup_fetches (
190
190
) -> anyhow:: Result < ( ) > {
191
191
// Example where an old lockfile with an explicit branch="master" in Cargo.toml.
192
192
Package :: new ( "bar" , "1.0.0" ) . publish ( ) ;
@@ -245,7 +245,7 @@ fn gitoxide_clones_git_dependency_with_shallow_protocol_and_git2_is_used_for_fol
245
245
. all( ) ?
246
246
. count( ) ,
247
247
1 ,
248
- "db clones are shallow and have a shortened history"
248
+ "db fetch are shallow and have a shortened history"
249
249
) ;
250
250
251
251
let dep_checkout = gix:: open_opts (
@@ -256,7 +256,7 @@ fn gitoxide_clones_git_dependency_with_shallow_protocol_and_git2_is_used_for_fol
256
256
assert_eq ! (
257
257
dep_checkout. head_id( ) ?. ancestors( ) . all( ) ?. count( ) ,
258
258
1 ,
259
- "db checkouts are hard-linked clones with the shallow file copied separately."
259
+ "db checkouts are hard-linked fetches with the shallow file copied separately."
260
260
) ;
261
261
262
262
bar. change_file ( "src/lib.rs" , "// another change" ) ;
@@ -324,7 +324,7 @@ fn gitoxide_clones_git_dependency_with_shallow_protocol_and_git2_is_used_for_fol
324
324
}
325
325
326
326
#[ cargo_test]
327
- fn gitoxide_shallow_clone_followed_by_non_shallow_update ( ) -> anyhow:: Result < ( ) > {
327
+ fn gitoxide_shallow_fetch_followed_by_non_shallow_update ( ) -> anyhow:: Result < ( ) > {
328
328
Package :: new ( "bar" , "1.0.0" ) . publish ( ) ;
329
329
let ( bar, bar_repo) = git:: new_repo ( "bar" , |p| {
330
330
p. file ( "Cargo.toml" , & basic_manifest ( "bar" , "1.0.0" ) )
@@ -381,7 +381,7 @@ fn gitoxide_shallow_clone_followed_by_non_shallow_update() -> anyhow::Result<()>
381
381
. all( ) ?
382
382
. count( ) ,
383
383
1 ,
384
- "db clones are shallow and have a shortened history"
384
+ "db fetches are shallow and have a shortened history"
385
385
) ;
386
386
387
387
let dep_checkout = gix:: open_opts (
@@ -392,7 +392,7 @@ fn gitoxide_shallow_clone_followed_by_non_shallow_update() -> anyhow::Result<()>
392
392
assert_eq ! (
393
393
dep_checkout. head_id( ) ?. ancestors( ) . all( ) ?. count( ) ,
394
394
1 ,
395
- "db checkouts are hard-linked clones with the shallow file copied separately."
395
+ "db checkouts are hard-linked fetches with the shallow file copied separately."
396
396
) ;
397
397
398
398
bar. change_file ( "src/lib.rs" , "// another change" ) ;
@@ -463,7 +463,7 @@ fn gitoxide_shallow_clone_followed_by_non_shallow_update() -> anyhow::Result<()>
463
463
}
464
464
465
465
#[ cargo_test]
466
- fn gitoxide_clones_registry_with_shallow_protocol_and_follow_up_fetch_maintains_shallowness (
466
+ fn gitoxide_fetch_registry_with_shallow_protocol_and_follow_up_fetch_maintains_shallowness (
467
467
) -> anyhow:: Result < ( ) > {
468
468
Package :: new ( "bar" , "1.0.0" ) . publish ( ) ;
469
469
let p = project ( )
@@ -493,7 +493,7 @@ fn gitoxide_clones_registry_with_shallow_protocol_and_follow_up_fetch_maintains_
493
493
. all( ) ?
494
494
. count( ) ,
495
495
1 ,
496
- "shallow clones always start at depth of 1 to minimize download size"
496
+ "shallow fetches always start at depth of 1 to minimize download size"
497
497
) ;
498
498
assert ! ( repo. is_shallow( ) ) ;
499
499
@@ -535,9 +535,9 @@ fn gitoxide_clones_registry_with_shallow_protocol_and_follow_up_fetch_maintains_
535
535
Ok ( ( ) )
536
536
}
537
537
538
- /// If there is shallow *and* non-shallow clones , non-shallow will naturally be returned due to sort order.
538
+ /// If there is shallow *and* non-shallow fetches , non-shallow will naturally be returned due to sort order.
539
539
#[ cargo_test]
540
- fn gitoxide_clones_registry_without_shallow_protocol_and_follow_up_fetch_uses_shallowness (
540
+ fn gitoxide_fetch_registry_without_shallow_protocol_and_follow_up_fetch_uses_shallowness (
541
541
) -> anyhow:: Result < ( ) > {
542
542
Package :: new ( "bar" , "1.0.0" ) . publish ( ) ;
543
543
let p = project ( )
@@ -587,7 +587,7 @@ fn gitoxide_clones_registry_without_shallow_protocol_and_follow_up_fetch_uses_sh
587
587
. all( ) ?
588
588
. count( ) ,
589
589
1 ,
590
- "the follow up clones an entirely new index which is now shallow and which is in its own location"
590
+ "the follow up fetch an entirely new index which is now shallow and which is in its own location"
591
591
) ;
592
592
assert ! ( shallow_repo. is_shallow( ) ) ;
593
593
@@ -630,14 +630,14 @@ fn gitoxide_clones_registry_without_shallow_protocol_and_follow_up_fetch_uses_sh
630
630
#[ cargo_test]
631
631
fn gitoxide_git_dependencies_switch_from_branch_to_rev ( ) -> anyhow:: Result < ( ) > {
632
632
// db exists from previous build, then dependency changes to refer to revision that isn't
633
- // available in the shallow clone .
633
+ // available in the shallow fetch .
634
634
635
635
let ( bar, bar_repo) = git:: new_repo ( "bar" , |p| {
636
636
p. file ( "Cargo.toml" , & basic_manifest ( "bar" , "1.0.0" ) )
637
637
. file ( "src/lib.rs" , "" )
638
638
} ) ;
639
639
640
- // this commit would not be available in a shallow clone .
640
+ // this commit would not be available in a shallow fetch .
641
641
let first_commit_pre_change = bar_repo. head ( ) . unwrap ( ) . target ( ) . unwrap ( ) ;
642
642
643
643
bar. change_file ( "src/lib.rs" , "// change" ) ;
@@ -713,7 +713,7 @@ fn shallow_deps_work_with_revisions_and_branches_mixed_on_same_dependency() -> a
713
713
. file ( "src/lib.rs" , "" )
714
714
} ) ;
715
715
716
- // this commit would not be available in a shallow clone .
716
+ // this commit would not be available in a shallow fetch .
717
717
let first_commit_pre_change = bar_repo. head ( ) . unwrap ( ) . target ( ) . unwrap ( ) ;
718
718
719
719
bar. change_file ( "src/lib.rs" , "// change" ) ;
@@ -765,8 +765,8 @@ fn shallow_deps_work_with_revisions_and_branches_mixed_on_same_dependency() -> a
765
765
}
766
766
767
767
#[ cargo_test]
768
- fn gitoxide_clones_registry_with_shallow_protocol_and_aborts_and_updates_again (
769
- ) -> anyhow :: Result < ( ) > {
768
+ fn gitoxide_fetch_registry_with_shallow_protocol_and_aborts_and_updates_again ( ) -> anyhow :: Result < ( ) >
769
+ {
770
770
Package :: new ( "bar" , "1.0.0" ) . publish ( ) ;
771
771
let p = project ( )
772
772
. file (
@@ -795,11 +795,11 @@ fn gitoxide_clones_registry_with_shallow_protocol_and_aborts_and_updates_again(
795
795
. all( ) ?
796
796
. count( ) ,
797
797
1 ,
798
- "shallow clones always start at depth of 1 to minimize download size"
798
+ "shallow fetches always start at depth of 1 to minimize download size"
799
799
) ;
800
800
assert ! ( repo. is_shallow( ) ) ;
801
801
let shallow_lock = repo. shallow_file ( ) . with_extension ( "lock" ) ;
802
- // adding a lock file and deleting the original simulates a left-over clone that was aborted, leaving a lock file
802
+ // adding a lock file and deleting the original simulates a left-over fetch that was aborted, leaving a lock file
803
803
// in place without ever having moved it to the right location.
804
804
std:: fs:: write ( & shallow_lock, & [ ] ) ?;
805
805
std:: fs:: remove_file ( repo. shallow_file ( ) ) ?;
@@ -819,7 +819,7 @@ fn gitoxide_clones_registry_with_shallow_protocol_and_aborts_and_updates_again(
819
819
. all( ) ?
820
820
. count( ) ,
821
821
1 ,
822
- "it's a fresh shallow clone - otherwise it would have 2 commits if the previous shallow clone would still be present"
822
+ "it's a fresh shallow fetch - otherwise it would have 2 commits if the previous shallow fetch would still be present"
823
823
) ;
824
824
825
825
Ok ( ( ) )
0 commit comments