Skip to content

Commit b9a1850

Browse files
committed
make baseline work with CI (#26)
1 parent 249d141 commit b9a1850

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

tests/baseline.rs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,11 @@ fn all_aggregrated_diffs_equal_latest_version(
2525
let index = crates_index_diff::Index::from_path_or_cloned(repo_path)?;
2626
let changes = index.changes_between_commits(
2727
git::hash::ObjectId::empty_tree(git::hash::Kind::Sha1),
28-
index.repository().head_id()?,
28+
index
29+
.repository()
30+
.find_reference("refs/remotes/origin/HEAD")?
31+
.target()
32+
.id(),
2933
)?;
3034

3135
use crates_index_diff::Change::*;

0 commit comments

Comments
 (0)