libgit2/tests-clay/core
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
..
dirent.c *: correct and codify various file permissions 2011-10-14 16:07:47 -07:00
filebuf.c *: correct and codify various file permissions 2011-10-14 16:07:47 -07:00
oid.c oid: Add git_oid_streq() which checks if an oid and an hex formatted string are equal 2011-10-13 23:15:11 +02:00
path.c Come out and Clay 2011-09-15 01:12:46 +02:00
rmdir.c *: correct and codify various file permissions 2011-10-14 16:07:47 -07:00
string.c Come out and Clay 2011-09-15 01:12:46 +02:00
strtol.c tests-clay: update clay 2011-10-07 23:02:02 +02:00
vector.c Tabify everything 2011-09-19 03:34:49 +03:00