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/fetch.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/fetch.c')
-rw-r--r-- | src/fetch.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/fetch.c b/src/fetch.c index ac7282819..af7dbaffd 100644 --- a/src/fetch.c +++ b/src/fetch.c @@ -14,6 +14,7 @@ #include "transport.h" #include "remote.h" #include "refspec.h" +#include "pack.h" #include "fetch.h" #include "netops.h" @@ -181,7 +182,7 @@ int git_fetch__download_pack(char **out, const char *buffered, size_t buffered_s } /* A bit dodgy, but we need to keep the pack at the temporary path */ - error = git_filebuf_commit_at(&file, file.path_lock); + error = git_filebuf_commit_at(&file, file.path_lock, GIT_PACK_FILE_MODE); cleanup: if (error < GIT_SUCCESS) git_filebuf_cleanup(&file); |