Prevent failures/errors when the checkout was made using a version instead of a branch