summaryrefslogtreecommitdiff
path: root/tests/libgit2/refs/revparse.c
Commit message (Collapse)AuthorAgeFilesLines
* Fix parsing rev with reflog of HEAD (e.g., HEAD@{3})Sven Strickroth2023-02-141-0/+3
| | | | | | Fixes issue #6156. Signed-off-by: Sven Strickroth <email@cs-ware.de>
* oid: `GIT_OID_*SZ` is now `GIT_OID_SHA1_*SIZE`Edward Thomson2022-06-141-6/+6
| | | | | In preparation for SHA256 support, `GIT_OID_RAWSZ` and `GIT_OID_HEXSZ` need to indicate that they're the size of _SHA1_ OIDs.
* revparse: Remove error-prone, redundant testCarl Dong2022-05-091-2/+0
| | | | | | | | | | | Originally introduced in: 776a6a8e5f8e258d31aded73c0ce38df6ac7bdc4 This test case has recently been fixed in bdab22384cc61d315005a65456a9f9563bb27c8f, but that fix will only last for a year. Next year the same problem will crop up and the test will need to be re-edited. This is not ideal as - This test case becomes an unnecessary burden for developers - Downstream distros or even just users who want to build older versions of libgit2 are guaranteed to have this test fail Furthermore, this test case is entirely unnecessary, as the functionality that was originally (see 776a6a8e5f8e258d31aded73c0ce38df6ac7bdc4) intended to be tested is well-covered by subsequent tests which specify a date instead of a "x ago" specification.
* revparse: adjust reflog test as we move away from the datesCarlos Martín Nieto2022-05-031-1/+1
| | | | | | | | The dates we use in `refs::revparse::date` has just passed the ten years, so now everything is beyond ten years, leading to an unexpected commit being returned. Adjust it to 11 years so it all looks fine again.
* refactor: `tests` is now `tests/libgit2`Edward Thomson2022-02-221-0/+890
Like we want to separate libgit2 and utility source code, we want to separate libgit2 and utility tests. Start by moving all the tests into libgit2.