diff options
Diffstat (limited to 'tests/t0802-write.c')
-rw-r--r-- | tests/t0802-write.c | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/tests/t0802-write.c b/tests/t0802-write.c index 4fc262177..20c1eab0a 100644 --- a/tests/t0802-write.c +++ b/tests/t0802-write.c @@ -6,19 +6,15 @@ #include <git/tag.h> #include <git/revwalk.h> -static const char *odb_dir = "../resources/pack-odb"; static const char *tag_id = "b25fa35b38051e4ae45d4222e795f9df2e43f1d1"; BEGIN_TEST(tag_writeback_test) - git_odb *db; git_oid id; git_repository *repo; git_tag *tag; /* char hex_oid[41]; */ - must_pass(git_odb_open(&db, odb_dir)); - - repo = git_repository_alloc(db); + repo = git_repository_open(REPOSITORY_FOLDER); must_be_true(repo != NULL); git_oid_mkstr(&id, tag_id); @@ -36,8 +32,7 @@ BEGIN_TEST(tag_writeback_test) printf("TAG New SHA1: %s\n", hex_oid); */ - must_pass(remove_loose_object(odb_dir, (git_object *)tag)); + must_pass(remove_loose_object(REPOSITORY_FOLDER, (git_object *)tag)); git_repository_free(repo); - git_odb_close(db); END_TEST |