Cope if commits is nil and mark as unknown commit(s)

Also include the reponame changes.