Fix tip commit helper function
This commit is contained in:
parent
e4a574b240
commit
18bc0553bd
@ -400,7 +400,7 @@ impl BenchmarkRepository
|
||||
|
||||
fn tip_commit<'repository>(repository: &'repository git2::Repository, branch_name: &str) -> Result<git2::Commit<'repository>, git2::Error>
|
||||
{
|
||||
let tip_reference_name = format!("refs/remotes/origin/{}", branch_name);
|
||||
let tip_reference_name = format!("refs/heads/{}", branch_name);
|
||||
repository.find_reference(&tip_reference_name).and_then(|tip_reference| tip_reference.peel_to_commit())
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user