소스 검색

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>
tags/v5.1.10.201908230655-r
Adrien Bustany 4 년 전
부모
커밋
28553c189c
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1
    1
      org.eclipse.jgit/src/org/eclipse/jgit/api/CloneCommand.java

+ 1
- 1
org.eclipse.jgit/src/org/eclipse/jgit/api/CloneCommand.java 파일 보기

@@ -700,7 +700,7 @@ public class CloneCommand extends TransportCommand<CloneCommand, Git> {
FileUtils.delete(gitDir, FileUtils.RECURSIVE
| FileUtils.SKIP_MISSING | FileUtils.IGNORE_ERRORS);
} else {
deleteChildren(directory);
deleteChildren(gitDir);
}
}
} catch (IOException e) {

Loading…
취소
저장