aboutsummaryrefslogtreecommitdiff
path: root/src/gistatic.c
diff options
context:
space:
mode:
authorEuAndreh <eu@euandre.org>2021-08-04 12:52:49 -0300
committerEuAndreh <eu@euandre.org>2021-08-04 13:08:30 -0300
commit252430e9ea5996c21c1fe24de623f458a24edbb7 (patch)
treed5095f079e5527725528d740ef26f89bd52524f1 /src/gistatic.c
parentRemove submodules (diff)
downloadgistatic-252430e9ea5996c21c1fe24de623f458a24edbb7.tar.gz
gistatic-252430e9ea5996c21c1fe24de623f458a24edbb7.tar.xz
tests/resources/*: Embed Git repositories directly
Implements #question-5414aee2-031a-5759-2a22-d572ee899ac0.
Diffstat (limited to 'src/gistatic.c')
-rw-r--r--src/gistatic.c6
1 files changed, 3 insertions, 3 deletions
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
);