Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/libgit2.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEdward Thomson <ethomson@microsoft.com>2013-11-05 03:28:57 +0400
committerEdward Thomson <ethomson@microsoft.com>2013-11-05 07:33:05 +0400
commit1d3a8aeb4bd032d0bf34039fbcb308fba06b862a (patch)
tree8e9165cfd8c4c3919abd2d4f301b1f45e281d5eb /src/checkout.c
parentf966acd13366d21e0b9beeecf021c0114596c716 (diff)
move mode_t to filebuf_open instead of _commit
Diffstat (limited to 'src/checkout.c')
-rw-r--r--src/checkout.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/checkout.c b/src/checkout.c
index a4f326637..6d7e3cfd4 100644
--- a/src/checkout.c
+++ b/src/checkout.c
@@ -1673,9 +1673,9 @@ static int checkout_write_merge(
goto done;
if ((error = git_futils_mkpath2file(path_workdir.ptr, 0755)) < 0 ||
- (error = git_filebuf_open(&output, path_workdir.ptr, GIT_FILEBUF_DO_NOT_BUFFER)) < 0 ||
+ (error = git_filebuf_open(&output, path_workdir.ptr, GIT_FILEBUF_DO_NOT_BUFFER, result.mode)) < 0 ||
(error = git_filebuf_write(&output, result.data, result.len)) < 0 ||
- (error = git_filebuf_commit(&output, result.mode)) < 0)
+ (error = git_filebuf_commit(&output)) < 0)
goto done;
done: