MULE-6724: make maven buildnumber plugin work with git
(cherry-picked from 894d87a)