parse the latest commit when creating a session