mirror of
https://git.proxmox.com/git/libgit2
synced 2025-05-06 06:51:09 +00:00
Win32: Fix diff::workdir::submodules test #2361
This commit is contained in:
parent
6d1b04383e
commit
daf2a648b1
@ -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