Skip to content

Commit

Permalink
Remove field if feature not enabled
Browse files Browse the repository at this point in the history
  • Loading branch information
Fernthedev committed Aug 2, 2024
1 parent c670485 commit 6c4dbee
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gix/src/clone/fetch/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ pub enum Error {
},
#[error("Failed to update HEAD with values from remote")]
HeadUpdate(#[from] crate::reference::edit::Error),
#[cfg(feature = "revision")]
#[error("Failed to parse revision")]
RefParseError(#[from] crate::revision::spec::parse::single::Error),
#[error("The remote didn't have any ref that matched '{}'", wanted.as_ref().as_bstr())]
Expand Down Expand Up @@ -230,7 +231,6 @@ impl PrepareFetch {
P: crate::NestedProgress,
P::SubProgress: 'static,
{

let (repo, fetch_outcome) = self.fetch_only(progress, should_interrupt)?;

let mut checkout = crate::clone::PrepareCheckout {
Expand Down

0 comments on commit 6c4dbee

Please sign in to comment.