Only Print repository Info in Android

It's only to diagnose a specific bug in Android.
This commit is contained in:
Vishesh Handa
2020-11-27 00:24:08 +01:00
parent 48ac4b8850
commit 1c55546340

View File

@ -91,6 +91,7 @@ class Repository with ChangeNotifier {
// //
// Debugging Info for https://github.com/GitJournal/GitJournal/issues/347 // Debugging Info for https://github.com/GitJournal/GitJournal/issues/347
// //
if (Platform.isAndroid) {
var foundDotGit = false; var foundDotGit = false;
await for (var file in repoDir.list()) { await for (var file in repoDir.list()) {
if (p.basename(file.path) == '.git') { if (p.basename(file.path) == '.git') {
@ -108,6 +109,7 @@ class Repository with ChangeNotifier {
Log.i("What is this: ${file.path}"); Log.i("What is this: ${file.path}");
} }
} }
}
var gitRepo = await GitRepository.load(repoPath); var gitRepo = await GitRepository.load(repoPath);
remotes = gitRepo.config.remotes; remotes = gitRepo.config.remotes;