Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/libgit2.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorVicent Marti <tanoku@gmail.com>2011-07-09 17:05:14 +0400
committerVicent Marti <tanoku@gmail.com>2011-07-09 17:05:14 +0400
commitc52736fa5226141754918cabf55c22be9c2aee1b (patch)
tree97b9d36ba49045c53ab12a6529b7c6260065498b /tests
parent3b2a423c3fb9e434c427b819d3281ae9e277091d (diff)
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')
-rw-r--r--tests/t18-status.c2
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);