summaryrefslogtreecommitdiff
path: root/tests-clar
diff options
context:
space:
mode:
authorVicent Martí <vicent@github.com>2013-10-08 04:31:26 -0700
committerVicent Martí <vicent@github.com>2013-10-08 04:31:26 -0700
commitca27ae4859e86006d4b7d2fda4976f328f4726cb (patch)
tree2a09d4df939f555c5c43a1f26c944dc02c8e0219 /tests-clar
parent711333efe1c1388c39cd76480273b4fcea18d491 (diff)
parent13f670a5d9d86629f4879f6df9494356e4f28832 (diff)
downloadlibgit2-ca27ae4859e86006d4b7d2fda4976f328f4726cb.tar.gz
Merge pull request #1894 from libgit2/cmn/tree-raw
tree: allow retrieval of raw attributes
Diffstat (limited to 'tests-clar')
-rw-r--r--tests-clar/object/tree/attributes.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests-clar/object/tree/attributes.c b/tests-clar/object/tree/attributes.c
index cc93b45d2..85216cd1b 100644
--- a/tests-clar/object/tree/attributes.c
+++ b/tests-clar/object/tree/attributes.c
@@ -107,7 +107,8 @@ void test_object_tree_attributes__normalize_600(void)
cl_git_pass(git_tree_lookup(&tree, repo, &id));
entry = git_tree_entry_byname(tree, "ListaTeste.xml");
- cl_assert_equal_i(entry->attr, GIT_FILEMODE_BLOB);
+ cl_assert_equal_i(git_tree_entry_filemode(entry), GIT_FILEMODE_BLOB);
+ cl_assert_equal_i(git_tree_entry_filemode_raw(entry), 0100600);
git_tree_free(tree);
cl_git_sandbox_cleanup();