summaryrefslogtreecommitdiff
path: root/src/notes.c
diff options
context:
space:
mode:
authornulltoken <emeric.fermas@gmail.com>2012-08-17 21:10:32 +0200
committernulltoken <emeric.fermas@gmail.com>2012-08-21 23:15:10 +0200
commita7dbac0b2372f9dd1af01ae058ec764d3979991f (patch)
tree31769d4f0c0676926922d61ad904f4c981491f66 /src/notes.c
parentd854d59e317e1ace817f5845ec7abfba38bece69 (diff)
downloadlibgit2-a7dbac0b2372f9dd1af01ae058ec764d3979991f.tar.gz
filemode: deploy enum usage
Diffstat (limited to 'src/notes.c')
-rw-r--r--src/notes.c10
1 files changed, 8 insertions, 2 deletions
diff --git a/src/notes.c b/src/notes.c
index 6f9e7779d..b592a2cd3 100644
--- a/src/notes.c
+++ b/src/notes.c
@@ -180,7 +180,7 @@ static int manipulate_note_in_tree_r(
subtree_name[2] = '\0';
error = tree_write(out, repo, parent, git_tree_id(new),
- subtree_name, 0040000);
+ subtree_name, GIT_FILEMODE_TREE);
cleanup:
@@ -252,7 +252,13 @@ static int insert_note_in_tree_enotfound_cb(git_tree **out,
GIT_UNUSED(current_error);
/* No existing fanout at this level, insert in place */
- return tree_write(out, repo, parent, note_oid, annotated_object_sha + fanout, 0100644);
+ return tree_write(
+ out,
+ repo,
+ parent,
+ note_oid,
+ annotated_object_sha + fanout,
+ GIT_FILEMODE_BLOB);
}
static int note_write(git_oid *out,