mirror of
https://git.proxmox.com/git/libgit2
synced 2025-05-11 19:50:40 +00:00
Merge pull request #2408 from phkelley/win32_test_fixes
Win32 test fixes
This commit is contained in:
commit
df192198d3
@ -194,6 +194,9 @@ void test_online_clone__clone_mirror(void)
|
|||||||
git_remote_free(remote);
|
git_remote_free(remote);
|
||||||
git_reference_free(head);
|
git_reference_free(head);
|
||||||
git_buf_free(&path);
|
git_buf_free(&path);
|
||||||
|
git_repository_free(g_repo);
|
||||||
|
g_repo = NULL;
|
||||||
|
|
||||||
cl_fixture_cleanup("./foo.git");
|
cl_fixture_cleanup("./foo.git");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -19,8 +19,8 @@ void rewrite_gitmodules(const char *workdir)
|
|||||||
cl_git_pass(git_buf_joinpath(&in_f, workdir, "gitmodules"));
|
cl_git_pass(git_buf_joinpath(&in_f, workdir, "gitmodules"));
|
||||||
cl_git_pass(git_buf_joinpath(&out_f, workdir, ".gitmodules"));
|
cl_git_pass(git_buf_joinpath(&out_f, workdir, ".gitmodules"));
|
||||||
|
|
||||||
cl_assert((in = fopen(in_f.ptr, "r")) != NULL);
|
cl_assert((in = fopen(in_f.ptr, "rb")) != NULL);
|
||||||
cl_assert((out = fopen(out_f.ptr, "w")) != NULL);
|
cl_assert((out = fopen(out_f.ptr, "wb")) != NULL);
|
||||||
|
|
||||||
while (fgets(line, sizeof(line), in) != NULL) {
|
while (fgets(line, sizeof(line), in) != NULL) {
|
||||||
char *scan = line;
|
char *scan = line;
|
||||||
|
Loading…
Reference in New Issue
Block a user