Validate FindCommits message_regex argument
What does this MR do and why?
Validate FindCommits message_regex argument
To ensure we aren't calling gitaly unncessarily we will check that the message_regex argument can be parsed. If it cannot then there's no value in calling gitaly as gitaly will return an InternalError
Related to #541920 (closed)