Skip to content

Commit

Permalink
fix(check): push oid from revparse single instead of calling push_ref
Browse files Browse the repository at this point in the history
Refs: #117
  • Loading branch information
hdevalke committed Feb 23, 2023
1 parent 23cd8cf commit a4b4111
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/cmd/check.rs
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,8 @@ impl Command for CheckCommand {
if rev.contains("..") {
revwalk.push_range(rev)?;
} else {
revwalk.push_ref(rev)?;
let oid = repo.revparse_single(rev)?.id();
revwalk.push(oid)?;
}

for commit in revwalk
Expand Down

0 comments on commit a4b4111

Please sign in to comment.