You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: gix/src/clone/fetch/mod.rs
+31-3
Original file line number
Diff line number
Diff line change
@@ -1,3 +1,5 @@
1
+
usecrate::bstr::BString;
2
+
usecrate::bstr::ByteSlice;
1
3
usecrate::clone::PrepareFetch;
2
4
3
5
/// The error returned by [`PrepareFetch::fetch_only()`].
@@ -35,6 +37,13 @@ pub enum Error {
35
37
},
36
38
#[error("Failed to update HEAD with values from remote")]
37
39
HeadUpdate(#[from]crate::reference::edit::Error),
40
+
#[error("The remote didn't have any ref that matched '{}'", wanted.as_ref().as_bstr())]
41
+
RefNameMissing{wanted: gix_ref::PartialName},
42
+
#[error("The remote has {} refs for '{}', try to use a specific name: {}", candidates.len(), wanted.as_ref().as_bstr(), candidates.iter().filter_map(|n| n.to_str().ok()).collect::<Vec<_>>().join(", "))]
43
+
RefNameAmbiguous{
44
+
wanted: gix_ref::PartialName,
45
+
candidates:Vec<BString>,
46
+
},
38
47
}
39
48
40
49
/// Modification
@@ -117,7 +126,7 @@ impl PrepareFetch {
117
126
remote = remote.with_fetch_tags(fetch_tags);
118
127
}
119
128
120
-
// Add HEAD after the remote was written to config, we need it to know what to checkout later, and assure
129
+
// Add HEAD after the remote was written to config, we need it to know what to check out later, and assure
121
130
// the ref that HEAD points to is present no matter what.
0 commit comments