mirror of
https://github.com/GitJournal/GitJournal.git
synced 2025-06-27 17:29:50 +08:00
Only Print repository Info in Android
It's only to diagnose a specific bug in Android.
This commit is contained in:
@ -91,21 +91,23 @@ class Repository with ChangeNotifier {
|
|||||||
//
|
//
|
||||||
// Debugging Info for https://github.com/GitJournal/GitJournal/issues/347
|
// Debugging Info for https://github.com/GitJournal/GitJournal/issues/347
|
||||||
//
|
//
|
||||||
var foundDotGit = false;
|
if (Platform.isAndroid) {
|
||||||
await for (var file in repoDir.list()) {
|
var foundDotGit = false;
|
||||||
if (p.basename(file.path) == '.git') {
|
|
||||||
foundDotGit = true;
|
|
||||||
Log.i(".git directory contents");
|
|
||||||
await for (var file in Directory(file.path).list()) {
|
|
||||||
Log.i("${file.path}");
|
|
||||||
}
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
if (foundDotGit == false) {
|
|
||||||
Log.e("Directory exists but .git folder is missing?");
|
|
||||||
await for (var file in repoDir.list()) {
|
await for (var file in repoDir.list()) {
|
||||||
Log.i("What is this: ${file.path}");
|
if (p.basename(file.path) == '.git') {
|
||||||
|
foundDotGit = true;
|
||||||
|
Log.i(".git directory contents");
|
||||||
|
await for (var file in Directory(file.path).list()) {
|
||||||
|
Log.i("${file.path}");
|
||||||
|
}
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if (foundDotGit == false) {
|
||||||
|
Log.e("Directory exists but .git folder is missing?");
|
||||||
|
await for (var file in repoDir.list()) {
|
||||||
|
Log.i("What is this: ${file.path}");
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user