From 252430e9ea5996c21c1fe24de623f458a24edbb7 Mon Sep 17 00:00:00 2001 From: EuAndreh Date: Wed, 4 Aug 2021 12:52:49 -0300 Subject: tests/resources/*: Embed Git repositories directly Implements #question-5414aee2-031a-5759-2a22-d572ee899ac0. --- src/gistatic.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/gistatic.c') diff --git a/src/gistatic.c b/src/gistatic.c index f049b74..0ce8394 100644 --- a/src/gistatic.c +++ b/src/gistatic.c @@ -953,14 +953,14 @@ static void test_last_commit_date() { struct git_repository *repo; const int e = git_repository_open_ext( &repo, - "tests/submodules/repo-1", + "tests/resources/repo-1/.gitdir", GIT_REPOSITORY_OPEN_NO_SEARCH, NULL ); assert(e == 0); char *const date = last_commit_date(repo); assert(date); - assert(strcmp(date, "2021-07-31 19:24") == 0); + assert(strcmp(date, "2021-07-31 19:29") == 0); free(date); git_repository_free(repo); test_ok(); @@ -970,7 +970,7 @@ static void test_last_commit_date() { struct git_repository *repo; const int e = git_repository_open_ext( &repo, - "tests/submodules/repo-2", + "tests/resources/repo-2/.gitdir", GIT_REPOSITORY_OPEN_NO_SEARCH, NULL ); -- cgit v1.2.3