GitHub.pm: fix $repo check before calling _get_credentials()
v0.31

 - Silence warnings in Create when the repository has no commits (GH#19)
   (thanks, @rkitover!)
 - Improve repository name extraction from remote URL (GH#21)
   (thanks, @doherty!)