Hopefully workaround dart-git errors

I think these are causing some clones to fail, but I'm not 100% certain.
I'm just going to roll the dice and see.
This commit is contained in:
Vishesh Handa
2021-03-05 14:57:58 +01:00
parent f2cf9dbfff
commit 30ee6c3889

View File

@ -92,7 +92,13 @@ Future<void> cloneRemote({
}
// Just to be on the safer side, incase dart-git fucks up something
await repo.checkout(".");
// Causes problems -
// - Pack files are read into memory, this causes OOM issues
// https://sentry.io/organizations/gitjournal/issues/2254310735/?project=5168082&query=is%3Aunresolved
// - Pack files don't have REF_DELTA implemented
// https://sentry.io/organizations/gitjournal/issues/2235794657/?project=5168082&query=is%3Aunresolved
//
// await repo.checkout(".");
}
Future<String> _remoteDefaultBranch({