From 936e4ab2f2ad4847e22483b26eb61f0c8e56b70c Mon Sep 17 00:00:00 2001 From: Marc Strapetz Date: Tue, 20 Apr 2010 21:01:19 +0200 Subject: Repository can be configured with FS On Windows, FS_Win32_Cygwin has been used if a Cygwin Git installation is present in the PATH. Assuming that the user works with the Cygwin Git installation may result in unnecessary overhead if he actually does not. Applications built on top of jgit may have more knowledge on the actually used Git client (Cygwin or not) and hence should be able to configure which FS to use accordingly. Change-Id: Ifc4278078b298781d55cf5421e9647a21fa5db24 --- .../src/org/eclipse/jgit/junit/MockSystemReader.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'org.eclipse.jgit.junit/src') diff --git a/org.eclipse.jgit.junit/src/org/eclipse/jgit/junit/MockSystemReader.java b/org.eclipse.jgit.junit/src/org/eclipse/jgit/junit/MockSystemReader.java index b4f0b7e909..c502fb6344 100644 --- a/org.eclipse.jgit.junit/src/org/eclipse/jgit/junit/MockSystemReader.java +++ b/org.eclipse.jgit.junit/src/org/eclipse/jgit/junit/MockSystemReader.java @@ -53,6 +53,7 @@ import java.util.TimeZone; import org.eclipse.jgit.errors.ConfigInvalidException; import org.eclipse.jgit.lib.Constants; import org.eclipse.jgit.lib.FileBasedConfig; +import org.eclipse.jgit.util.FS; import org.eclipse.jgit.util.SystemReader; public class MockSystemReader extends SystemReader { @@ -102,7 +103,7 @@ public class MockSystemReader extends SystemReader { } @Override - public FileBasedConfig openUserConfig() { + public FileBasedConfig openUserConfig(FS fs) { return userGitConfig; } -- cgit v1.2.3