diff options
author | EuAndreh <eu@euandre.org> | 2021-08-05 16:17:55 -0300 |
---|---|---|
committer | EuAndreh <eu@euandre.org> | 2021-08-05 16:17:55 -0300 |
commit | 8ed36ac5a27df37029c24430d35dd5e65aab9f81 (patch) | |
tree | b012f11791dcf04baa93aacf7eea1bed80df5c60 /src | |
parent | .gitignore: Add tmp/ (diff) | |
download | gistatic-8ed36ac5a27df37029c24430d35dd5e65aab9f81.tar.gz gistatic-8ed36ac5a27df37029c24430d35dd5e65aab9f81.tar.xz |
Use .git symlink to simplify testing of embedded repositories
Diffstat (limited to 'src')
-rw-r--r-- | src/gistatic.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/gistatic.c b/src/gistatic.c index 0ce8394..3ce77bc 100644 --- a/src/gistatic.c +++ b/src/gistatic.c @@ -949,11 +949,11 @@ cleanup: static void test_last_commit_date() { test_start("test_last_commit_date"); { - testing("embedded Git repository tests/submodules/repo-1"); + testing("embedded Git repository tests/resources/repo-1"); struct git_repository *repo; const int e = git_repository_open_ext( &repo, - "tests/resources/repo-1/.gitdir", + "tests/resources/repo-1", GIT_REPOSITORY_OPEN_NO_SEARCH, NULL ); @@ -966,11 +966,11 @@ static void test_last_commit_date() { test_ok(); } { - testing("embedded Git repository tests/submodules/repo-2"); + testing("embedded Git repository tests/resources/repo-2"); struct git_repository *repo; const int e = git_repository_open_ext( &repo, - "tests/resources/repo-2/.gitdir", + "tests/resources/repo-2", GIT_REPOSITORY_OPEN_NO_SEARCH, NULL ); |