mirror of
https://github.com/GitJournal/GitJournal.git
synced 2025-06-23 23:31:51 +08:00
clone: Remove remote on fail
This way the repo isn't left in an invalid state.
This commit is contained in:
@ -571,6 +571,8 @@ class GitHostSetupScreenState extends State<GitHostSetupScreen> {
|
||||
} on Exception catch (e, stacktrace) {
|
||||
Log.e("Failed to clone", ex: e, stacktrace: stacktrace);
|
||||
error = e.toString();
|
||||
|
||||
await _removeRemote();
|
||||
}
|
||||
|
||||
if (error != null && error.isNotEmpty) {
|
||||
|
Reference in New Issue
Block a user