We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d602d7e commit e29e952Copy full SHA for e29e952
1 file changed
gix/src/clone/access.rs
@@ -48,6 +48,9 @@ impl PrepareFetch {
48
///
49
/// Note that `name` should be a partial name like `main` or `feat/one`, but can be a full ref name.
50
/// If a branch on the remote matches, it will automatically be retrieved even without a refspec.
51
+ ///
52
+ /// **Warning**: Calling this method with a valid refspec that is not a branch name currently causes
53
+ /// subsequent calls to [`PrepareFetch::fetch_only`] or [`PrepareFetch::fetch_then_checkout`] to panic.
54
pub fn with_ref_name<'a, Name, E>(mut self, name: Option<Name>) -> Result<Self, E>
55
where
56
Name: TryInto<&'a gix_ref::PartialNameRef, Error = E>,
0 commit comments