if not revision passing to checkout command then use head