summaryrefslogtreecommitdiff
path: root/tests/refs/iterator.c
Commit message (Collapse)AuthorAgeFilesLines
* Add a branch with a empty reflog into testrepo.gitYoichi Nakayama2021-10-221-0/+2
|
* smart: use push_glob instead of manual filteringEtienne Samson2019-08-211-2/+4
| | | | | | | | | | The code worked under the assumption that anything under `refs/tags` are tag objects, and all the rest would be peelable to a commit. As it is completely valid to have tags to blobs under a non `refs/tags` ref, this would cause failures when trying to peel a tag to a commit. Fix the broken filtering by switching to `git_revwalk_push_glob`, which already handles this case.
* tests: refs::iterator: fix memory leak due to ref names not being free'dPatrick Steinhardt2018-01-121-0/+1
| | | | | | | The test refs::iterator::foreach_name iterates through every reference and copies its name into a local vector. While the test makes sure to free the vector afterwards, the copied reference names are not being free'd. Fix that.
* refs:iterator: add tests to recurse symlinksethomson/branch_symlinksEdward Thomson2017-12-301-18/+66
| | | | Ensure that we can recurse into directories via symbolic links.
* refs: failing test for concurrent ref accessCarlos Martín Nieto2014-06-021-0/+33
| | | | | If we remove a reference while we're iterating through the packed refs, the position in the iterator will be off.
* More tests of canceling from callbacksRussell Belfer2013-12-121-18/+109
| | | | | This covers diff print, push, and ref foreach. This also has a fix for a small memory leak in the push tests.
* Rename tests-clar to testsBen Straub2013-11-141-0/+97