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