Fix GitRepo.clone parameters

This is why it sucks to have 2 fields both of the same type and not have
some kind of automated testing for this part of the code.
This commit is contained in:
Vishesh Handa
2019-07-28 03:01:16 +02:00
parent e80a380a5f
commit 0bfa839b88
2 changed files with 2 additions and 2 deletions

View File

@ -56,7 +56,7 @@ class GitApp extends StatelessWidget {
child: Text("Git Clone"),
onPressed: () async {
try {
await GitRepo.clone(cloneUrl, basePath);
await GitRepo.clone(basePath, cloneUrl);
_sendSuccess();
} on GitException catch (ex) {
print(ex);

View File

@ -382,7 +382,7 @@ class GitHostSetupScreenState extends State<GitHostSetupScreen> {
String error;
try {
await GitRepo.clone(_gitCloneUrl, "journal");
await GitRepo.clone("journal", _gitCloneUrl);
} on GitException catch (e) {
error = e.cause;
}