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
diff options
context:
space:
mode:
authorEdward Thomson <ethomson@edwardthomson.com>2012-10-30 05:04:21 +0400
committerEdward Thomson <ethomson@edwardthomson.com>2012-10-30 05:04:21 +0400
commitf45ec1a076e2347ba5d63eeb2d158f87b612e5cb (patch)
tree2e2bebc12e64e6f48eabde6010bf775b3fc6cd6e /tests-clar/attr
parent81eecc342b3580e9b05e501c8ee75c7e2e0dca1a (diff)
index refactoring
Diffstat (limited to 'tests-clar/attr')
-rw-r--r--tests-clar/attr/repo.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests-clar/attr/repo.c b/tests-clar/attr/repo.c
index 4a317e4f3..b51d5e335 100644
--- a/tests-clar/attr/repo.c
+++ b/tests-clar/attr/repo.c
@@ -270,12 +270,12 @@ static void assert_proper_normalization(git_index *index, const char *filename,
git_index_entry *entry;
add_to_workdir(filename, CONTENT);
- cl_git_pass(git_index_add(index, filename, 0));
+ cl_git_pass(git_index_add_from_workdir(index, filename));
index_pos = git_index_find(index, filename);
cl_assert(index_pos >= 0);
- entry = git_index_get(index, index_pos);
+ entry = git_index_get_byindex(index, index_pos);
cl_assert_equal_i(0, git_oid_streq(&entry->oid, expected_sha));
}