mirror of
https://github.com/GitJournal/GitJournal.git
synced 2025-06-25 00:00:26 +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) {
|
} on Exception catch (e, stacktrace) {
|
||||||
Log.e("Failed to clone", ex: e, stacktrace: stacktrace);
|
Log.e("Failed to clone", ex: e, stacktrace: stacktrace);
|
||||||
error = e.toString();
|
error = e.toString();
|
||||||
|
|
||||||
|
await _removeRemote();
|
||||||
}
|
}
|
||||||
|
|
||||||
if (error != null && error.isNotEmpty) {
|
if (error != null && error.isNotEmpty) {
|
||||||
|
Reference in New Issue
Block a user