mirror of
https://github.com/GitJournal/GitJournal.git
synced 2025-06-29 02:07:39 +08:00
Fix gitClone from github
The test still fails, but via the app cloning seems to work. Progress!!
This commit is contained in:
@ -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'
|
||||
|
@ -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(
|
||||
|
Reference in New Issue
Block a user