Skip to content

Commit 977b81b

Browse files
committed
fix: Don't bail out if there are extra-refspecs. (#1562)
1 parent 649f588 commit 977b81b

File tree

1 file changed

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

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,7 @@ where
182182
progress: impl Progress,
183183
options: ref_map::Options,
184184
) -> Result<Prepare<'remote, 'repo, T>, prepare::Error> {
185-
if self.remote.refspecs(remote::Direction::Fetch).is_empty() {
185+
if self.remote.refspecs(remote::Direction::Fetch).is_empty() && options.extra_refspecs.is_empty() {
186186
return Err(prepare::Error::MissingRefSpecs);
187187
}
188188
let ref_map = self.ref_map_inner(progress, options).await?;

0 commit comments

Comments
 (0)