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

Also include the reponame changes.
Merge pull request #2 from warmfusion/update-from-qiaxx

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