mirror of
https://github.com/GitJournal/GitJournal.git
synced 2025-06-27 17:20:26 +08:00
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:
@ -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);
|
||||
|
@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user