We only had that problem one year in the fall when they came up to eat green tomatoes. Nothing works better than male urine. Keeps all creatures away. Whenever I would see evidence of raccoon or rabbit or deer, hubby would get sent out for evening patrol. Just the perimeter not on the plants.
Irish spring soap is said to work pretty well too. You could hang some bars in old onion mesh bags.
Human urine repels them. We have started using urine for fertilizer this yr. It is advised on several Forums. Diluted right it is good stuff. So buy a camp toilet. WalMart sells a snap on lid for a 5 gallon bucket cheap. Our grass has never been better and saved buying the expensive chemicals.
Anyway because of this we have not had the deer problems that we normally have here. Not applied directly to plants but as a pre emergent. We also have an 8 ft electric deer fence but some things are outside the fence.
The deer do come right up to the house and irritate the chihuahuas and raid the bird feeders but so far they are staying away from the gardens.