diff options
author | Carlos Martín Nieto <cmn@dwim.me> | 2012-12-07 15:16:41 +0100 |
---|---|---|
committer | Carlos Martín Nieto <cmn@dwim.me> | 2012-12-07 16:59:18 +0100 |
commit | f1c75b94a17a2835f4166c11efe1cb4084bf5388 (patch) | |
tree | 0507db030d492149b8a40bf9c14ab83ee8fcc211 /tests-clar/resources | |
parent | fac43c54a6f02d3dbedd11ec228d4cb606a52bff (diff) | |
download | libgit2-f1c75b94a17a2835f4166c11efe1cb4084bf5388.tar.gz |
tree: relax the filemode parser
There are many different broken filemodes in the wild so we need to
protect against them and give something useful up the chain. Don't
fail when reading a tree from the ODB but normalize the mode as best
we can.
As 664 is no longer a mode that we consider to be valid and gets
normalized to 644, we can stop accepting it in the treebuilder. The
library won't expose it to the user, so any invalid modes are a bug.
Diffstat (limited to 'tests-clar/resources')
-rw-r--r-- | tests-clar/resources/deprecated-mode.git/objects/08/10fb7818088ff5ac41ee49199b51473b1bd6c7 | bin | 0 -> 350 bytes |
1 files changed, 0 insertions, 0 deletions
diff --git a/tests-clar/resources/deprecated-mode.git/objects/08/10fb7818088ff5ac41ee49199b51473b1bd6c7 b/tests-clar/resources/deprecated-mode.git/objects/08/10fb7818088ff5ac41ee49199b51473b1bd6c7 Binary files differnew file mode 100644 index 000000000..52d56936a --- /dev/null +++ b/tests-clar/resources/deprecated-mode.git/objects/08/10fb7818088ff5ac41ee49199b51473b1bd6c7 |