Skip to content

Commit 49f851d

Browse files
committed
support short revisions for start and end parameter
resolves #20
1 parent 7cb0720 commit 49f851d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ use least_satisfying::{least_satisfying, Satisfies};
6767
fn get_commits(start: &str, end: &str) -> Result<Vec<git::Commit>, Error> {
6868
eprintln!("fetching commits from {} to {}", start, end);
6969
let commits = git::get_commits_between(start, end)?;
70-
assert_eq!(commits.first().expect("at least one commit").sha, start);
70+
assert_eq!(commits.first().expect("at least one commit").sha, git::expand_commit(start)?);
7171

7272
Ok(commits)
7373
}

0 commit comments

Comments
 (0)