diff options
author | Vicent Marti <tanoku@gmail.com> | 2010-11-02 18:42:42 +0200 |
---|---|---|
committer | Vicent Marti <tanoku@gmail.com> | 2010-11-02 18:42:42 +0200 |
commit | 6fd195d76c7f52baae5540e287affe2259900d36 (patch) | |
tree | 4dd644c5086dce17827f42b8c811049175da88f9 /tests/t0602-write.c | |
parent | d80e9d55aa2d0629f7f207db42762494075d7854 (diff) | |
download | libgit2-6fd195d76c7f52baae5540e287affe2259900d36.tar.gz |
Change git_repository initialization to use a path
The constructor to git_repository is now called
'git_repository_open(path)'
and takes a path to a git repository instead of an existing ODB object.
Unit tests have been updated accordingly and the two test repositories
have been merged into one.
Signed-off-by: Vicent Marti <tanoku@gmail.com>
Diffstat (limited to 'tests/t0602-write.c')
-rw-r--r-- | tests/t0602-write.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/t0602-write.c b/tests/t0602-write.c index c5e5c7d94..d232193b7 100644 --- a/tests/t0602-write.c +++ b/tests/t0602-write.c @@ -5,7 +5,7 @@ #include <git/odb.h> #include <git/index.h> -#define TEST_INDEX_PATH "../resources/index" +#define TEST_INDEX_PATH "../resources/testrepo.git/index" int filecmp(const char *filename1, const char *filename2) { @@ -35,7 +35,7 @@ BEGIN_TEST(index_load_test) git_index *index; git_filelock out_file; - index = git_index_alloc(TEST_INDEX_PATH); + index = git_index_alloc(TEST_INDEX_PATH, NULL); must_be_true(index != NULL); must_pass(git_index_read(index)); must_be_true(index->on_disk); |