only worked for one time, seeing if this will work every time
This commit is contained in:
parent
db48ac41c9
commit
ba14ce1d81
1 changed files with 1 additions and 1 deletions
|
@ -77,7 +77,7 @@ fn fast_forward(refractr: &Refractr, repo_dir: &str, branches: &Option<Vec<Strin
|
||||||
let origin_commit = origin_branch.get().peel_to_commit().unwrap();
|
let origin_commit = origin_branch.get().peel_to_commit().unwrap();
|
||||||
|
|
||||||
if local_commit.id() < origin_commit.id() {
|
if local_commit.id() < origin_commit.id() {
|
||||||
local_branch.into_reference().set_target(origin_commit.id(), "Fast-forwarding").unwrap();
|
repo.set_head(format!("origin/{}", branch).as_str())?;
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue