summaryrefslogtreecommitdiff
path: root/tests-clar/refs/read.c
Commit message (Collapse)AuthorAgeFilesLines
* Rename tests-clar to testsBen Straub2013-11-141-284/+0
|
* refs: add git_reference_is_tagNikolai Vladimirov2013-08-261-0/+16
|
* immutable references and a pluggable ref databaseEdward Thomson2013-03-071-5/+6
|
* refs: cover git_reference_name_to_oid() unfound behaviornulltoken2012-12-011-0/+4
|
* refs: Deploy EINVALIDSPEC usagenulltoken2012-12-011-4/+20
|
* Rename ref and reflog apis for consistencyBen Straub2012-11-271-9/+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
* Fix leak in the testsCarlos Martín Nieto2012-10-151-0/+1
| | | | | Also introduce the slective ref trimming promised but also missed in the previous commit.
* refs: loosen the OID parsingCarlos Martín Nieto2012-10-151-0/+1
| | | | | | | | | | | | We used to require loose references to contain only an OID (possibly after trimming the string). This is however not enough for letting us lookup FETCH_HEAD, which can have a lot of content after the initial OID. Change the parsing rules so that a loose refernce must e at least 40 bytes long and the 41st (if it's there) must be accepted by isspace(3). This makes the trim unnecessary, so only do it for symrefs. This fixes #977.
* refs: introduce git_reference_is_valid_name()nulltoken2012-09-251-2/+2
|
* Test trailing space after ref oidJoshua Peek2012-08-091-0/+12
|
* Parse ref oids without trailing newlineJoshua Peek2012-08-091-0/+12
|
* branch: introduce git_reference_is_branch()nulltoken2012-07-241-0/+16
|
* refs: readonly tests don't need a sandboxed reponulltoken2012-07-121-2/+2
|
* refs: deep unfound ref returns ENOTFOUNDnulltoken2012-07-071-0/+10
|
* Update test suiteVicent Martí2012-05-021-6/+6
|
* tests: Cleanup & fix test suiteVicent Martí2012-04-031-15/+10
|
* Discovered cl_git_strequal! Mounted a crusade!Ben Straub2012-03-311-6/+6
|
* t10-refs.c ported.Ben Straub2012-03-301-0/+199