We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent cb39fcb commit aba9c17Copy full SHA for aba9c17
gitoxide-core/src/pack/receive.rs
@@ -3,6 +3,7 @@ use crate::pack::receive::protocol::fetch::negotiate;
3
use crate::OutputFormat;
4
use gix::config::tree::Key;
5
use gix::protocol::maybe_async;
6
+use gix::remote::fetch::Error;
7
use gix::DynNestedProgress;
8
pub use gix::{
9
hash::ObjectId,
@@ -92,6 +93,15 @@ where
92
93
gix::protocol::fetch::refmap::init::Options::default(),
94
)
95
.await?;
96
+
97
+ if refmap.mappings.is_empty() && !refmap.remote_refs.is_empty() {
98
+ return Err(Error::NoMapping {
99
+ refspecs: refmap.refspecs.clone(),
100
+ num_remote_refs: refmap.remote_refs.len(),
101
+ }
102
+ .into());
103
104
105
let mut negotiate = Negotiate { refmap: &refmap };
106
gix::protocol::fetch(
107
&mut negotiate,
0 commit comments