Skip to content

Unable to fetch with only extra_refspecs #1562

@skeggse

Description

@skeggse

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    acknowledgedan issue is accepted as shortcoming to be fixed

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions