Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 342860

Summary: Provide a programmatic way to enforce use of an external ssh executable
Product: [Technology] JGit Reporter: Benjamin Bentmann <bentmann>
Component: JGitAssignee: Project Inbox <jgit.core-inbox>
Status: NEW --- QA Contact:
Severity: enhancement    
Priority: P3 CC: bentmann, matthias.sohn
Version: unspecified   
Target Milestone: ---   
Hardware: All   
OS: All   
Whiteboard:

Description Benjamin Bentmann CLA 2011-04-14 11:43:31 EDT
Regarding this code snippet from TransportGitSsh

  private static boolean useExtConnection() {
    return SystemReader.getInstance().getenv("GIT_SSH") != null;
  }

It would be nice if there was a way to enforce use of some ssh executable from within the already running JVM. Right now, this requires to install a new SystemReader which overlays the desired GIT_SSH value and otherwise delegates to the original SystemReader.