The commits is an iterable of Commit objects. I wanted to check if the commit id is in the repo. So once we find it we return true. Elsely  the program stop.