Get log for a project

Return git log for a given repository.
Why you are ignoring this error. What will happens if `total` can't be converted to int?