You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

JSchSshProtocol2Test.java 753B

1234567891011121314151617181920212223242526
  1. /*
  2. * Copyright (C) 2020 Thomas Wolf <thomas.wolf@paranor.ch> and others
  3. *
  4. * This program and the accompanying materials are made available under the
  5. * terms of the Eclipse Distribution License v. 1.0 which is available at
  6. * https://www.eclipse.org/org/documents/edl-v10.php.
  7. *
  8. * SPDX-License-Identifier: BSD-3-Clause
  9. */
  10. //TODO(ms): move to org.eclipse.jgit.ssh.jsch in 6.0
  11. package org.eclipse.jgit.transport;
  12. import org.eclipse.jgit.lib.Repository;
  13. import org.eclipse.jgit.lib.StoredConfig;
  14. public class JSchSshProtocol2Test extends JSchSshTest {
  15. @Override
  16. public void setUp() throws Exception {
  17. super.setUp();
  18. StoredConfig config = ((Repository) db).getConfig();
  19. config.setInt("protocol", null, "version", 2);
  20. config.save();
  21. }
  22. }