Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to fetch with only extra_refspecs #1562

Closed
skeggse opened this issue Aug 26, 2024 · 1 comment · Fixed by #1563
Closed

Unable to fetch with only extra_refspecs #1562

skeggse opened this issue Aug 26, 2024 · 1 comment · Fixed by #1563
Labels
acknowledged an issue is accepted as shortcoming to be fixed

Comments

@skeggse
Copy link

skeggse commented Aug 26, 2024

Current behavior 😯

Cannot perform a meaningful fetch operation without any configured ref-specs

Expected behavior 🤔

Successful fetch

Git behavior

git remote show origin -n seems to indicate that it happily won't update anything.

Steps to reproduce 🕹

let mut options = gix::remote::ref_map::Options::default();
options.extra_refspecs.push(gix::refspec::parse("adc83b19e793491b1c6ea0fd8b46cd9f32e592fc".as_ref().into(), gix::refspec::parse::Operation::Fetch).unwrap().to_owned());

prepare_fetch(gix::progress::Discard, options) // -> prepare::Error::MissingRefSpecs
@Byron Byron mentioned this issue Aug 27, 2024
@Byron Byron added the acknowledged an issue is accepted as shortcoming to be fixed label Aug 27, 2024
@Byron
Copy link
Member

Byron commented Aug 27, 2024

Thanks a lot for reporting - a fix is on the way.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
acknowledged an issue is accepted as shortcoming to be fixed
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants