Check if commit is made on the right branch