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);