libgit2/tests-clar/resources
Russell Belfer 3c42e4ef74 Fix initialization of repo directories
When PR #1359 removed the hooks from the test resources/template
directory, it made me realize that the tests for
git_repository_init_ext using templates must be pretty shabby
because we could not have been testing if the hooks were getting
created correctly.

So, this started with me recreating a couple of hooks, including
a sample and symlink, and adding tests that they got created
correctly in the various circumstances, including with the SHARED
modes, etc.  Unfortunately this uncovered some issues with how
directories and symlinks were copied and chmod'ed.  Also, there
was a FIXME in the code related to the chmod behavior as well.

Going back over the directory creation logic for setting up a
repository, I found it was a little difficult to read and could
result in creating and/or chmod'ing directories that the user
almost certainly didn't intend.

So that let to this work which makes repo initialization much
more careful (and hopefully easier to follow).  It required a
couple of extensions / changes to core fileops utilities, but I
also think those are for the better, at least for git_futils_cp_r
in terms of being careful about what actions it takes.
2013-02-26 11:43:14 -08:00
..
attr More diff tests with binary data 2013-02-11 14:45:46 -08:00
attr_index Fixing issue with test data 2012-05-04 13:55:07 -07:00
bad_tag.git Allow peeled references without trailing newline at end of file 2013-01-22 15:49:51 -08:00
binaryunicode Fix up binaryunicode test repo 2013-01-11 20:07:52 -05:00
config config: distinguish between a lone variable name and one without rhs 2012-11-13 13:53:41 -08:00
crlf/.gitted add a git config, don't run crlf tests on non-win32 2013-01-17 18:18:44 -06:00
deprecated-mode.git Remove sample hook files 2013-02-25 17:03:05 +00:00
diff Fix problems in diff iterator record chaining 2012-09-13 13:17:38 -07:00
duplicate.git Remove sample hook files 2013-02-25 17:03:05 +00:00
empty_bare.git Moved testing resources to clar, and removed old tests directory. 2012-03-31 16:10:01 -07:00
empty_standard_repo/.gitted Moved testing resources to clar, and removed old tests directory. 2012-03-31 16:10:01 -07:00
filemodes Remove sample hook files 2013-02-25 17:03:05 +00:00
issue_592 Diff iterators 2012-09-05 15:17:24 -07:00
issue_592b Remove sample hook files 2013-02-25 17:03:05 +00:00
mergedrepo index refactoring 2012-10-29 20:04:21 -05:00
partial-testrepo/.gitted Local fetch: add tests 2012-11-09 10:33:10 -08:00
push_src push: properly handle tags 2013-01-09 17:05:21 +01:00
renames Initial implementation of diff rename detection 2012-10-23 16:40:51 -07:00
short_tag.git tags: Fixed the tag parser to correctly treat the message field as optional. 2012-11-02 10:28:17 -07:00
status Diff iterators 2012-09-05 15:17:24 -07:00
submod2 Remove sample hook files 2013-02-25 17:03:05 +00:00
submod2_target Remove sample hook files 2013-02-25 17:03:05 +00:00
submodules Move test resources 2012-05-02 16:18:55 -07:00
template Fix initialization of repo directories 2013-02-26 11:43:14 -08:00
testrepo/.gitted Merge pull request #944 from scunz/list_tags 2012-09-25 14:52:24 -07:00
testrepo.git tracking: fix retrieval of the tracking ref of branch with empty merge and/or remote entry 2012-11-28 20:00:07 +01:00
twowaymerge.git Add the ahead/behind test that Carlos suggested 2012-11-28 18:54:57 -08:00
typechanges Add complex checkout test and then fix checkout 2012-10-09 11:59:34 -07:00
unsymlinked.git Remove sample hook files 2013-02-25 17:03:05 +00:00
.gitattributes Moved testing resources to clar, and removed old tests directory. 2012-03-31 16:10:01 -07:00
.gitignore Moved testing resources to clar, and removed old tests directory. 2012-03-31 16:10:01 -07:00
big.index Moved testing resources to clar, and removed old tests directory. 2012-03-31 16:10:01 -07:00
gitgit.index Moved testing resources to clar, and removed old tests directory. 2012-03-31 16:10:01 -07:00
push.sh Push! By schu, phkelley, and congyiwu, et al 2012-11-28 11:42:37 -05:00