Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/libgit2.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarlos Martín Nieto <cmn@dwim.me>2013-04-15 11:07:57 +0400
committerCarlos Martín Nieto <cmn@dwim.me>2013-10-08 12:07:31 +0400
commit13f670a5d9d86629f4879f6df9494356e4f28832 (patch)
tree2a09d4df939f555c5c43a1f26c944dc02c8e0219 /tests-clar/object/tree/attributes.c
parent711333efe1c1388c39cd76480273b4fcea18d491 (diff)
tree: allow retrieval of raw attributes
When a tool needs to recreate the tree object (for example an interface to another VCS), it needs to use the raw attributes, forgoing any normalization.
Diffstat (limited to 'tests-clar/object/tree/attributes.c')
-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();