summaryrefslogtreecommitdiff
path: root/tests-clay/repo/init.c
diff options
context:
space:
mode:
authornulltoken <emeric.fermas@gmail.com>2011-12-01 07:48:20 +0100
committernulltoken <emeric.fermas@gmail.com>2011-12-01 07:48:20 +0100
commit8e80decf3404dde5bec3d0c89ebe7e17f373e16b (patch)
treef9017d9d45026ede35a841c550bcf92a71b4307e /tests-clay/repo/init.c
parent8a4e3181df95f4a772ce95bd66a8a65fcf5c5a75 (diff)
downloadlibgit2-8e80decf3404dde5bec3d0c89ebe7e17f373e16b.tar.gz
Fix compilation warnings
Diffstat (limited to 'tests-clay/repo/init.c')
-rw-r--r--tests-clay/repo/init.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests-clay/repo/init.c b/tests-clay/repo/init.c
index 95cd704e9..9677541ed 100644
--- a/tests-clay/repo/init.c
+++ b/tests-clay/repo/init.c
@@ -44,7 +44,7 @@ static void ensure_repository_init(
#ifdef GIT_WIN32
if (!is_bare) {
- cl_assert((GetFileAttributes(_repo->path_repository) & FILE_ATTRIBUTE_HIDDEN) != 0);
+ cl_assert((GetFileAttributes(git_repository_path(_repo)) & FILE_ATTRIBUTE_HIDDEN) != 0);
}
#endif
@@ -90,7 +90,7 @@ BEGIN_TEST(init2, "Initialize and open a bare repo with a relative path escaping
must_pass(chdir(path_repository));
must_pass(git_repository_init(&repo, "../d/e.git", 1));
- must_pass(git__suffixcmp(repo->path_repository, "/a/b/d/e.git/"));
+ must_pass(git__suffixcmp(git_repository_path(_repo), "/a/b/d/e.git/"));
git_repository_free(repo);