add fetchoptions to ff

This commit is contained in:
Bryson Steck 2025-03-23 22:29:31 -06:00
parent 21080610a7
commit 1690131e4f
Signed by: bryson
SSH key fingerprint: SHA256:XpKABw/nP4z8UVaH+weLaBnEOD86+cVwif+QjuYLGT4

View file

@ -92,7 +92,9 @@ impl Refractr {
fn fast_forward(&self, repo: &Repository, branches: &Vec<String>) -> Result<(), Error> {
common::verbose(self.verbose, 2, format!("Pulling origin"));
repo.find_remote("origin")?.fetch(&branches, None, None)?;
let mut fo = FetchOptions::new();
fo.download_tags(git2::AutotagOption::All);
repo.find_remote("origin")?.fetch(&branches, Some(&mut fo), None)?;
for branch in branches {
let refname = format!("refs/remotes/origin/{}", branch);