summaryrefslogtreecommitdiff
path: root/tests-clar/object/peel.c
Commit message (Collapse)AuthorAgeFilesLines
* Rename tests-clar to testsBen Straub2013-11-141-105/+0
|
* Remove obsolete test for peel typeRussell Belfer2013-05-041-5/+0
| | | | | Peeling to an invalid type is now checked via an assert so this test is no longer relevant.
* object: refine git_object_peel() error reportnulltoken2012-12-011-4/+9
|
* Reset all static variables to NULL in clar's __cleanupSascha Cunz2012-11-231-0/+1
| | | | | | | | | | | | Without this change, any failed assertion in the second (or a later) test inside a test suite has a chance of double deleting memory, resulting in a heap corruption. See #1096 for details. This leaves alone the test cases where we "just" use cl_git_sandbox_init() and cl_git_sandbox_cleanup(). These methods already take good care to not double delete a repository. Fixes #1096
* object: make git_object_peel() test more readablenulltoken2012-09-061-10/+25
|
* Make git_object_peel a bit smarterRussell Belfer2012-08-271-3/+13
| | | | | | | | | | | This expands the types of peeling that `git_object_peel` knows how to do to include TAG -> BLOB peeling, and makes the errors slightly more consistent depending on the situation. It also adds a new special behavior where peeling to ANY will peel until the object type changes (e.g. chases TAGs to a non-TAG). Using this expanded peeling, this replaces peeling code that was embedded in `git_tag_peel` and `git_reset`.
* object: introduce git_object_peel()nulltoken2012-07-171-0/+79
Partially fix #530