Skip to content

Commit be941d7

Browse files
Merge pull request #33 from hellow554/master
support short revisions for start and end parameter
2 parents 7cb0720 + 49f851d commit be941d7

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)