if commit is not found goto last revision