Skip to content

Commit

Permalink
Remove redundant check
Browse files Browse the repository at this point in the history
It was also printing the wrong message, but it never happened anyways
because the condition is already caught by the block above.
  • Loading branch information
glandium committed May 3, 2024
1 parent f3ddd71 commit f240c6f
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4093,13 +4093,6 @@ fn remote_helper_push(
stdout.flush().unwrap();
return Ok(0);
}
if let Some(metadata) = resolve_ref(METADATA_REF) {
if Some(metadata) == resolve_ref(BROKEN_REF) {
return Err(
"Cannot fetch with broken metadata. Please fix your clone first.".to_string(),
);
}
}

let bookmark_prefix = info.refs_style.contains(RefsStyle::BOOKMARKS).then(|| {
if info
Expand Down

0 comments on commit f240c6f

Please sign in to comment.