Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit daf2a64

Browse files
committed
Win32: Fix diff::workdir::submodules test libgit2#2361
1 parent 6d1b043 commit daf2a64

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/submodule/submodule_helpers.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@ void rewrite_gitmodules(const char *workdir)
1919
cl_git_pass(git_buf_joinpath(&in_f, workdir, "gitmodules"));
2020
cl_git_pass(git_buf_joinpath(&out_f, workdir, ".gitmodules"));
2121

22-
cl_assert((in = fopen(in_f.ptr, "r")) != NULL);
23-
cl_assert((out = fopen(out_f.ptr, "w")) != NULL);
22+
cl_assert((in = fopen(in_f.ptr, "rb")) != NULL);
23+
cl_assert((out = fopen(out_f.ptr, "wb")) != NULL);
2424

2525
while (fgets(line, sizeof(line), in) != NULL) {
2626
char *scan = line;

0 commit comments

Comments
 (0)