And rosemary...
I also plant tansy, a herb that in times past was rubbed on food or placed in coffins to delay "spoilage", and has been shown to protect potatoes from beetles, and houses from flies. My herb garden is by the back door and I have every spare spot filled with tansy. Am hoping it protects the tomatoes from bugs as well as the kitchen from pesky flies. Does it work? Well I do still get the odd fly and it would take a scientific experiment to determine whether I'd be dealing with more flies without it. Just hope they aren't coming inside to escape it....