libgit2/tests
Brodie Rao 01ad7b3a9e *: correct and codify various file permissions
The following files now have 0444 permissions:

- loose objects
- pack indexes
- pack files
- packs downloaded by fetch
- packs downloaded by the HTTP transport

And the following files now have 0666 permissions:

- config files
- repository indexes
- reflogs
- refs

This brings libgit2 more in line with Git.

Note that git_filebuf_commit() and git_filebuf_commit_at() have both
gained a new mode parameter.

The latter change fixes an important issue where filebufs created with
GIT_FILEBUF_TEMPORARY received 0600 permissions (due to mkstemp(3)
usage). Now we chmod() the file before renaming it into place.

Tests have been added to confirm that new commit, tag, and tree
objects are created with the right permissions. I don't have access to
Windows, so for now I've guarded the tests with "#ifndef GIT_WIN32".
2011-10-14 16:07:47 -07:00
..
resources Add test commit containing subtrees and files 2011-10-13 22:48:58 +02:00
.gitignore Fix Makefile to correctly handle 'make -j4 test' 2008-11-03 18:42:54 -08:00
NAMING status: get blob object id of file on disk 2011-07-09 13:49:50 +02:00
t00-core.c *: correct and codify various file permissions 2011-10-14 16:07:47 -07:00
t01-data.h Rewrite the unit testing suite 2011-02-02 02:15:25 +02:00
t01-rawobj.c Fix wrong test in t04-commit 2011-08-04 22:49:39 +02:00
t02-data.h Cleanup the testing toolkit 2011-03-03 20:23:52 +02:00
t02-objread.c cleanup: remove trailing spaces 2011-07-01 18:02:56 +02:00
t02-oids.h Rewrite the unit testing suite 2011-02-02 02:15:25 +02:00
t03-data.h What the fuck was this doing in src? 2011-07-11 19:42:21 +02:00
t03-objwrite.c fileops/repository: create (most) directories with 0777 permissions 2011-10-14 16:04:34 -07:00
t04-commit.c *: correct and codify various file permissions 2011-10-14 16:07:47 -07:00
t05-revwalk.c cleanup: remove trailing spaces 2011-07-01 18:02:56 +02:00
t06-index.c *: correct and codify various file permissions 2011-10-14 16:07:47 -07:00
t07-hashtable.c CMakefile: add -Wmissing-prototypes and fix warnings 2011-08-30 23:55:22 +03:00
t08-tag.c *: correct and codify various file permissions 2011-10-14 16:07:47 -07:00
t09-tree.c *: correct and codify various file permissions 2011-10-14 16:07:47 -07:00
t10-refs.c fileops/repository: create (most) directories with 0777 permissions 2011-10-14 16:04:34 -07:00
t12-repo.c *: correct and codify various file permissions 2011-10-14 16:07:47 -07:00
t13-threads.c Fix MSVC warnings 2011-03-21 19:27:45 +02:00
t15-config.c *: correct and codify various file permissions 2011-10-14 16:07:47 -07:00
t16-remotes.c Make repo config loading automatic or completely explicit 2011-09-27 14:40:56 +02:00
t17-bufs.c Don't leak the buf when testing it 2011-07-12 18:19:56 +02:00
t18-status.c *: correct and codify various file permissions 2011-10-14 16:07:47 -07:00
test_helpers.c *: correct and codify various file permissions 2011-10-14 16:07:47 -07:00
test_helpers.h *: correct and codify various file permissions 2011-10-14 16:07:47 -07:00
test_lib.c test: Properly show error messages 2011-06-28 21:10:51 +02:00
test_lib.h CMakefile: add -Wmissing-prototypes and fix warnings 2011-08-30 23:55:22 +03:00
test_main.c fileops/repository: create (most) directories with 0777 permissions 2011-10-14 16:04:34 -07:00
tests.supp Add support for running the tests via valgrind 2009-10-13 16:23:54 +01:00