You do not have to lookup and resolve the HEAD reference anymore if you simply want the last commit. Repository has now a head-getter which combines all these steps. example: repo = Repository('.') head = repo.head print(head.message)