Skip to content

Commit d296ee8

Browse files
committed
adapt to changes in gix-ref
1 parent 16b5e7e commit d296ee8

File tree

1 file changed

+3
-1
lines changed
  • gix/src/remote/connection/fetch/update_refs

1 file changed

+3
-1
lines changed

gix/src/remote/connection/fetch/update_refs/mod.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,9 @@ pub(crate) fn update(
201201
PreviousValue::MustExistAndMatch(existing.target().into_owned()),
202202
)
203203
}
204-
Err(crate::reference::peel::Error::ToId(gix_ref::peel::to_id::Error::Follow(_))) => {
204+
Err(crate::reference::peel::Error::ToId(gix_ref::peel::to_id::Error::FollowToObject(
205+
gix_ref::peel::to_object::Error::Follow(_),
206+
))) => {
205207
// An unborn reference, always allow it to be changed to whatever the remote wants.
206208
(
207209
if existing.target().try_name().map(gix_ref::FullNameRef::as_bstr)

0 commit comments

Comments
 (0)