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/fetchhead.c | |
parent | f966acd13366d21e0b9beeecf021c0114596c716 (diff) |
move mode_t to filebuf_open instead of _commit
Diffstat (limited to 'src/fetchhead.c')
-rw-r--r-- | src/fetchhead.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/fetchhead.c b/src/fetchhead.c index 4dcebb857..9672623ff 100644 --- a/src/fetchhead.c +++ b/src/fetchhead.c @@ -112,7 +112,7 @@ int git_fetchhead_write(git_repository *repo, git_vector *fetchhead_refs) if (git_buf_joinpath(&path, repo->path_repository, GIT_FETCH_HEAD_FILE) < 0) return -1; - if (git_filebuf_open(&file, path.ptr, GIT_FILEBUF_FORCE) < 0) { + if (git_filebuf_open(&file, path.ptr, GIT_FILEBUF_FORCE, GIT_REFS_FILE_MODE) < 0) { git_buf_free(&path); return -1; } @@ -124,7 +124,7 @@ int git_fetchhead_write(git_repository *repo, git_vector *fetchhead_refs) git_vector_foreach(fetchhead_refs, i, fetchhead_ref) fetchhead_ref_write(&file, fetchhead_ref); - return git_filebuf_commit(&file, GIT_REFS_FILE_MODE); + return git_filebuf_commit(&file); } static int fetchhead_ref_parse( |