only worked for one time, seeing if this will work every time

This commit is contained in:
Bryson Steck 2025-03-05 00:46:09 -07:00
parent db48ac41c9
commit ba14ce1d81
Signed by: brysonsteck
SSH key fingerprint: SHA256:XpKABw/nP4z8UVaH+weLaBnEOD86+cVwif+QjuYLGT4

View file

@ -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();
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())?;
}
}