summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhilip Kelley <phkelley@hotmail.com>2014-06-07 12:18:56 -0400
committerPhilip Kelley <phkelley@hotmail.com>2014-06-07 12:18:56 -0400
commitdaf2a648b1dcc02665dcf9c6f5317db61d84be89 (patch)
treed762daebf5ff866d9798876a4087ed3c3d64e53b
parent6d1b04383ed0744b0346dc9834e34ef7b634a2e0 (diff)
downloadlibgit2-daf2a648b1dcc02665dcf9c6f5317db61d84be89.tar.gz
Win32: Fix diff::workdir::submodules test #2361
-rw-r--r--tests/submodule/submodule_helpers.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/submodule/submodule_helpers.c b/tests/submodule/submodule_helpers.c
index 50aa97568..c6d04b40a 100644
--- a/tests/submodule/submodule_helpers.c
+++ b/tests/submodule/submodule_helpers.c
@@ -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(&out_f, workdir, ".gitmodules"));
- cl_assert((in = fopen(in_f.ptr, "r")) != NULL);
- cl_assert((out = fopen(out_f.ptr, "w")) != NULL);
+ cl_assert((in = fopen(in_f.ptr, "rb")) != NULL);
+ cl_assert((out = fopen(out_f.ptr, "wb")) != NULL);
while (fgets(line, sizeof(line), in) != NULL) {
char *scan = line;