diff options
author | Edward Thomson <ethomson@microsoft.com> | 2013-11-05 03:28:57 +0400 |
---|---|---|
committer | Edward Thomson <ethomson@microsoft.com> | 2013-11-05 07:33:05 +0400 |
commit | 1d3a8aeb4bd032d0bf34039fbcb308fba06b862a (patch) | |
tree | 8e9165cfd8c4c3919abd2d4f301b1f45e281d5eb /src/index.c | |
parent | f966acd13366d21e0b9beeecf021c0114596c716 (diff) |
move mode_t to filebuf_open instead of _commit
Diffstat (limited to 'src/index.c')
-rw-r--r-- | src/index.c | 4 |
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); |