diff options
author | Vicent Martà <tanoku@gmail.com> | 2011-10-28 19:04:23 -0700 |
---|---|---|
committer | Vicent Martà <tanoku@gmail.com> | 2011-10-28 19:04:23 -0700 |
commit | 89fb8f025a1f72b90f1f9563c85bf43b7f66ba60 (patch) | |
tree | 11726793eecf4670d4948a22e276dd3d50d1addb /src/index.c | |
parent | 3286c408eccb18c525ca123383f3ebf5097441bc (diff) | |
parent | 01ad7b3a9ec8f5e465f94c2704e1e96b84f941c7 (diff) | |
download | libgit2-89fb8f025a1f72b90f1f9563c85bf43b7f66ba60.tar.gz |
Merge pull request #456 from brodie/perm-fixes
Create objects, indexes, and directories with the right file permissions
Diffstat (limited to 'src/index.c')
-rw-r--r-- | src/index.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/index.c b/src/index.c index 9ace9515f..1a9745a2c 100644 --- a/src/index.c +++ b/src/index.c @@ -262,7 +262,7 @@ int git_index_write(git_index *index) return git__rethrow(error, "Failed to write index"); } - if ((error = git_filebuf_commit(&file)) < GIT_SUCCESS) + if ((error = git_filebuf_commit(&file, GIT_INDEX_FILE_MODE)) < GIT_SUCCESS) return git__rethrow(error, "Failed to write index"); if (p_stat(index->index_file_path, &indexst) == 0) { |