Do not allow DartGit's exception to escape

DartGit is still quite experimental.
This commit is contained in:
Vishesh Handa
2020-05-01 11:22:02 +02:00
parent 8636021952
commit 64bfefa266

View File

@ -173,7 +173,8 @@ class GitNoteRepository {
Future<int> numChanges() async {
try {
var repo = await git.GitRepository.load(gitDirPath);
return repo.numChangesToPush();
var n = await repo.numChangesToPush();
return n;
} catch (_) {}
return 0;
}