@@ -206,7 +206,7 @@ pub(super) fn find_custom_refname<'a>(
206
206
object : None ,
207
207
} )
208
208
. collect ( ) ;
209
- let res = group. match_remotes ( filtered_items. iter ( ) . copied ( ) ) ;
209
+ let res = group. match_lhs ( filtered_items. iter ( ) . copied ( ) ) ;
210
210
match res. mappings . len ( ) {
211
211
0 => Err ( Error :: RefNameMissing {
212
212
wanted : ref_name. clone ( ) ,
@@ -221,9 +221,9 @@ pub(super) fn find_custom_refname<'a>(
221
221
wanted : ref_name. clone ( ) ,
222
222
candidates : res
223
223
. mappings
224
- . iter ( )
224
+ . into_iter ( )
225
225
. filter_map ( |m| match m. lhs {
226
- gix_refspec:: match_group:: SourceRef :: FullName ( name) => Some ( name. to_owned ( ) ) ,
226
+ gix_refspec:: match_group:: SourceRef :: FullName ( name) => Some ( name. into_owned ( ) ) ,
227
227
gix_refspec:: match_group:: SourceRef :: ObjectId ( _) => None ,
228
228
} )
229
229
. collect ( ) ,
@@ -252,7 +252,7 @@ fn setup_branch_config(
252
252
. expect ( "remote was just created and must be visible in config" ) ;
253
253
let group = gix_refspec:: MatchGroup :: from_fetch_specs ( remote. fetch_specs . iter ( ) . map ( gix_refspec:: RefSpec :: to_ref) ) ;
254
254
let null = gix_hash:: ObjectId :: null ( repo. object_hash ( ) ) ;
255
- let res = group. match_remotes (
255
+ let res = group. match_lhs (
256
256
Some ( gix_refspec:: match_group:: Item {
257
257
full_ref_name : branch. as_bstr ( ) ,
258
258
target : branch_id. unwrap_or ( & null) ,
0 commit comments