summaryrefslogtreecommitdiff
path: root/tests-clar/submodule/status.c
diff options
context:
space:
mode:
authorPhilip Kelley <phkelley@hotmail.com>2013-01-27 14:17:07 -0500
committerPhilip Kelley <phkelley@hotmail.com>2013-01-27 14:17:07 -0500
commit11d9f6b30438a141def883b0115f7f764c03e990 (patch)
treeabe54e8085c4e3a1c7a822ee256f81e0d58e6b42 /tests-clar/submodule/status.c
parentaa3bf89df21c44f22fe70b4aac9109646fd06b48 (diff)
downloadlibgit2-11d9f6b30438a141def883b0115f7f764c03e990.tar.gz
Vector improvements and their fallout
Diffstat (limited to 'tests-clar/submodule/status.c')
-rw-r--r--tests-clar/submodule/status.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/tests-clar/submodule/status.c b/tests-clar/submodule/status.c
index 325013466..3fd6960c9 100644
--- a/tests-clar/submodule/status.c
+++ b/tests-clar/submodule/status.c
@@ -100,11 +100,10 @@ void test_submodule_status__ignore_none(void)
/* remove sm_changed_head from index */
{
git_index *index;
- int pos;
+ size_t pos;
cl_git_pass(git_repository_index(&index, g_repo));
- pos = git_index_find(index, "sm_changed_head");
- cl_assert(pos >= 0);
+ cl_assert(!git_index_find(&pos, index, "sm_changed_head"));
cl_git_pass(git_index_remove(index, "sm_changed_head", 0));
cl_git_pass(git_index_write(index));