Showing the changes to git-traverse/tests/commit (1 of 7 files). Show all
Unified · Split
| @@ -1,12 +1,12 @@ | ||
| 1 | 1 | mod ancestor { |
| 2 | 2 | use crate::hex_to_id; |
| 3 | 3 | use git_hash::ObjectId; |
| 4 | − use git_odb::{linked, linked::Db, pack, Find}; | |
| 4 | + use git_odb::{linked::Db, pack, Find}; | |
| 5 | 5 | use git_traverse::commit; |
| 6 | 6 | |
| 7 | − fn db() -> Result<Db, Box<dyn std::error::Error>> { | |
| 8 | − let dir = git_testtools::scripted_fixture_repo_read_only("make_traversal_repo.sh")?; | |
| 9 | − let db = linked::Db::at(dir.join(".git").join("objects"))?; | |
| 7 | + fn db() -> crate::Result<Db> { | |
| 8 | + let dir = git_testtools::scripted_fixture_repo_read_only("make_traversal_repo_for_commits.sh")?; | |
| 9 | + let db = Db::at(dir.join(".git").join("objects"))?; | |
| 10 | 10 | Ok(db) |
| 11 | 11 | } |
| 12 | 12 | |