@@ -238,14 +238,14 @@ pub(crate) fn update(
238238 let new = new_value_by_remote ( repo, remote, mappings) ?;
239239 let type_change = match ( & previous_value, & new) {
240240 (
241- PreviousValue :: ExistingMustMatch ( Target :: Peeled ( _) )
242- | PreviousValue :: MustExistAndMatch ( Target :: Peeled ( _) ) ,
241+ PreviousValue :: ExistingMustMatch ( Target :: Object ( _) )
242+ | PreviousValue :: MustExistAndMatch ( Target :: Object ( _) ) ,
243243 Target :: Symbolic ( _) ,
244244 ) => Some ( TypeChange :: DirectToSymbolic ) ,
245245 (
246246 PreviousValue :: ExistingMustMatch ( Target :: Symbolic ( _) )
247247 | PreviousValue :: MustExistAndMatch ( Target :: Symbolic ( _) ) ,
248- Target :: Peeled ( _) ,
248+ Target :: Object ( _) ,
249249 ) => Some ( TypeChange :: SymbolicToDirect ) ,
250250 _ => None ,
251251 } ;
@@ -349,7 +349,7 @@ fn update_needs_adjustment_as_edits_symbolic_target_is_missing(
349349 edits : & [ RefEdit ] ,
350350) -> bool {
351351 match edit. change . new_value ( ) . expect ( "here we need a symlink" ) {
352- TargetRef :: Peeled ( _) => unreachable ! ( "BUG: we already know it's symbolic" ) ,
352+ TargetRef :: Object ( _) => unreachable ! ( "BUG: we already know it's symbolic" ) ,
353353 TargetRef :: Symbolic ( new_target_ref) => {
354354 match & edit. change {
355355 Change :: Update { expected, .. } => match expected {
@@ -422,7 +422,7 @@ fn new_value_by_remote(
422422 Target :: Symbolic ( target. try_into ( ) ?)
423423 } else {
424424 // born branches that we don't have in our refspecs we create peeled. That way they can be used.
425- Target :: Peeled ( desired_id. to_owned ( ) )
425+ Target :: Object ( desired_id. to_owned ( ) )
426426 }
427427 }
428428 // Unborn branches we create as such, with the location they point to on the remote which helps mirroring.
@@ -431,7 +431,7 @@ fn new_value_by_remote(
431431 }
432432 }
433433 } else {
434- Target :: Peeled ( remote_id. expect ( "unborn case handled earlier" ) . to_owned ( ) )
434+ Target :: Object ( remote_id. expect ( "unborn case handled earlier" ) . to_owned ( ) )
435435 } ,
436436 )
437437}
0 commit comments