Skip to content

Commit 1368816

Browse files
committed
Fix bug where missing end would default to "origin/master" then get compared to a sha
1 parent 516f1bd commit 1368816

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/main.rs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -962,10 +962,11 @@ fn bisect_ci_via(
962962
client: &Client,
963963
access: &dyn RustRepositoryAccessor,
964964
start_sha: &str,
965-
end_sha: &str)
965+
end_ref: &str)
966966
-> Result<BisectionResult, Error>
967967
{
968-
let commits = access.commits(start_sha, end_sha)?;
968+
let end_sha = access.commit(end_ref)?.sha;
969+
let commits = access.commits(start_sha, &end_sha)?;
969970

970971
assert_eq!(commits.last().expect("at least one commit").sha, end_sha);
971972

0 commit comments

Comments
 (0)