summaryrefslogtreecommitdiff
path: root/src/indexer.c
diff options
context:
space:
mode:
authorVicent Martí <tanoku@gmail.com>2011-10-28 19:04:23 -0700
committerVicent Martí <tanoku@gmail.com>2011-10-28 19:04:23 -0700
commit89fb8f025a1f72b90f1f9563c85bf43b7f66ba60 (patch)
tree11726793eecf4670d4948a22e276dd3d50d1addb /src/indexer.c
parent3286c408eccb18c525ca123383f3ebf5097441bc (diff)
parent01ad7b3a9ec8f5e465f94c2704e1e96b84f941c7 (diff)
downloadlibgit2-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/indexer.c')
-rw-r--r--src/indexer.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/indexer.c b/src/indexer.c
index a09353ab7..a69ab850c 100644
--- a/src/indexer.c
+++ b/src/indexer.c
@@ -272,7 +272,7 @@ int git_indexer_write(git_indexer *idx)
/* Figure out what the final name should be */
index_path(filename, idx);
/* Commit file */
- error = git_filebuf_commit_at(&idx->file, filename);
+ error = git_filebuf_commit_at(&idx->file, filename, GIT_PACK_FILE_MODE);
cleanup:
git_mwindow_free_all(&idx->pack->mwf);