Default StrictHostKeyChecking to true (#630)
* defaulted strict host key checking to true and updated test
This commit is contained in:
committed by
Spencer Gibb
parent
9094984b76
commit
b68a3eba6b
@@ -71,7 +71,7 @@ public class AbstractScmAccessor implements ResourceLoaderAware {
|
||||
/**
|
||||
* Reject incoming SSH host keys from remote servers not in the known host list.
|
||||
*/
|
||||
private boolean strictHostKeyChecking;
|
||||
private boolean strictHostKeyChecking = true;
|
||||
/**
|
||||
* Search paths to use within local working copy. By default searches only the root.
|
||||
*/
|
||||
|
||||
@@ -600,7 +600,7 @@ public class JGitEnvironmentRepositoryTests {
|
||||
JGitEnvironmentRepository envRepository = new JGitEnvironmentRepository(this.environment);
|
||||
envRepository.setUri(uri);
|
||||
envRepository.setBasedir(new File("./mybasedir"));
|
||||
envRepository.setStrictHostKeyChecking(true);
|
||||
assertTrue(envRepository.isStrictHostKeyChecking());
|
||||
envRepository.setCloneOnStart(true);
|
||||
try {
|
||||
// this will throw but we don't care about connecting.
|
||||
|
||||
Reference in New Issue
Block a user