I don't have a git repo handy here at the moment to test with, but if that indeed isn't working, then try this instead:

Replace the ^} expression with ^[}]