From 1690131e4f287c18c838d12e2bd6a5478df2ce98 Mon Sep 17 00:00:00 2001 From: Bryson Steck Date: Sun, 23 Mar 2025 22:29:31 -0600 Subject: [PATCH] add fetchoptions to ff --- src/refractr.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/refractr.rs b/src/refractr.rs index f98ca0c..9b3285e 100644 --- a/src/refractr.rs +++ b/src/refractr.rs @@ -92,7 +92,9 @@ impl Refractr { fn fast_forward(&self, repo: &Repository, branches: &Vec) -> 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);