corrected git revision regex