diff --git a/lib/src/git.dart b/lib/src/git.dart index 31da872..65e4411 100644 --- a/lib/src/git.dart +++ b/lib/src/git.dart @@ -27,6 +27,7 @@ Future gitUserEmail() => gitConfig('user.email'); Future gitRepoHomepage() => gitConfig('remote.origin.url').then(repoUrlToHomepage); String repoUrlToHomepage(String repo) { + if (repo == '') return null; var uri = Uri.parse(repo); p.Context context = p.Style.url.context; // Remove '.git' suffix.