diff options
| author | Vicent Marti <tanoku@gmail.com> | 2011-07-09 15:05:14 +0200 |
|---|---|---|
| committer | Vicent Marti <tanoku@gmail.com> | 2011-07-09 15:05:14 +0200 |
| commit | c52736fa5226141754918cabf55c22be9c2aee1b (patch) | |
| tree | 97b9d36ba49045c53ab12a6529b7c6260065498b /tests/t18-status.c | |
| parent | 3b2a423c3fb9e434c427b819d3281ae9e277091d (diff) | |
| download | libgit2-c52736fa5226141754918cabf55c22be9c2aee1b.tar.gz | |
status: Cleanup
The `hashfile` function has been moved to ODB, next to `git_odb_hash`.
Global state has been removed from the dirent call in `status.c`,
because global state is killing the rainforest and causing global
warming.
Diffstat (limited to 'tests/t18-status.c')
| -rw-r--r-- | tests/t18-status.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/t18-status.c b/tests/t18-status.c index a20d97b8f..3fdcce9c9 100644 --- a/tests/t18-status.c +++ b/tests/t18-status.c @@ -68,7 +68,7 @@ BEGIN_TEST(file0, "test retrieving OID from a file apart from the ODB") must_pass(git_futils_exists(temp_path)); git_oid_fromstr(&expected_id, test_blob_oid); - must_pass(git_status_hashfile(&actual_id, temp_path)); + must_pass(git_odb_hashfile(&actual_id, temp_path, GIT_OBJ_BLOB)); must_be_true(git_oid_cmp(&expected_id, &actual_id) == 0); |
