Fix copy-paste typo in CloneCommand#cleanup

deleteChildren was called on directory instead of gitDir, leading to a
potential null pointer exception if the git directory existed initially.

Bug: 550340
Change-Id: Iafc3b2961253a99862a59e81c7371f7bc564b412
Signed-off-by: Adrien Bustany <adrien-xx-eclipse@bustany.org>
This commit is contained in:
Adrien Bustany 2019-08-22 17:11:45 +02:00 committed by David Pursehouse
parent e80a62e226
commit 28553c189c
1 changed files with 1 additions and 1 deletions

View File

@ -700,7 +700,7 @@ private void cleanup() {
FileUtils.delete(gitDir, FileUtils.RECURSIVE
| FileUtils.SKIP_MISSING | FileUtils.IGNORE_ERRORS);
} else {
deleteChildren(directory);
deleteChildren(gitDir);
}
}
} catch (IOException e) {