add fetchoptions to ff
This commit is contained in:
parent
21080610a7
commit
1690131e4f
1 changed files with 3 additions and 1 deletions
|
@ -92,7 +92,9 @@ impl Refractr {
|
||||||
|
|
||||||
fn fast_forward(&self, repo: &Repository, branches: &Vec<String>) -> Result<(), Error> {
|
fn fast_forward(&self, repo: &Repository, branches: &Vec<String>) -> Result<(), Error> {
|
||||||
common::verbose(self.verbose, 2, format!("Pulling origin"));
|
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 {
|
for branch in branches {
|
||||||
let refname = format!("refs/remotes/origin/{}", branch);
|
let refname = format!("refs/remotes/origin/{}", branch);
|
||||||
|
|
Loading…
Add table
Reference in a new issue