Fix gitClone from github

The test still fails, but via the app cloning seems to work. Progress!!
This commit is contained in:
Vishesh Handa
2019-02-06 15:34:57 +01:00
parent 4de157e6b1
commit 66cdda213a
2 changed files with 8 additions and 1 deletions

View File

@ -74,6 +74,7 @@ dependencies {
{
exclude group: 'org.apache.httpcomponents', module: 'httpclient'
}
implementation 'com.jcraft:jsch:0.1.54'
// For reading a file to string
implementation 'commons-io:commons-io:2.5'

View File

@ -395,7 +395,13 @@ class GitHostSetupScreenState extends State<GitHostSetupScreen> {
// Just in case it was half cloned because of an error
await _removeExistingClone(basePath);
String error = await gitClone(_gitCloneUrl, "journal");
String error;
try {
await gitClone(_gitCloneUrl, "journal");
} catch (e) {
error = e.message;
}
if (error != null && error.isNotEmpty) {
setState(() {
getAnalytics().logEvent(