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/index.c
parentf966acd13366d21e0b9beeecf021c0114596c716 (diff)
move mode_t to filebuf_open instead of _commit
Diffstat (limited to 'src/index.c')
-rw-r--r--src/index.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/index.c b/src/index.c
index dbf1ab529..ecab15024 100644
--- a/src/index.c
+++ b/src/index.c
@@ -500,7 +500,7 @@ int git_index_write(git_index *index)
git_vector_sort(&index->reuc);
if ((error = git_filebuf_open(
- &file, index->index_file_path, GIT_FILEBUF_HASH_CONTENTS)) < 0) {
+ &file, index->index_file_path, GIT_FILEBUF_HASH_CONTENTS, GIT_INDEX_FILE_MODE)) < 0) {
if (error == GIT_ELOCKED)
giterr_set(GITERR_INDEX, "The index is locked. This might be due to a concurrrent or crashed process");
@@ -512,7 +512,7 @@ int git_index_write(git_index *index)
return error;
}
- if ((error = git_filebuf_commit(&file, GIT_INDEX_FILE_MODE)) < 0)
+ if ((error = git_filebuf_commit(&file)) < 0)
return error;
error = git_futils_filestamp_check(&index->stamp, index->index_file_path);