ugly code because git log likes to throw exceptions -.-