Fix tip commit helper function

This commit is contained in:
Patrick Lühne 2019-03-02 01:07:13 +01:00
parent e4a574b240
commit 18bc0553bd
Signed by: patrick
GPG Key ID: 05F3611E97A70ABF
1 changed files with 1 additions and 1 deletions

View File

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