I think Garlic failed one of the tests for mosquitoes, but don't know about ticks.

BTW, it takes several hours, after biting, to infect you. So, check after you're done and you should still be OK.