summaryrefslogtreecommitdiffstats
path: root/org.eclipse.jgit.http.server/src/org/eclipse
diff options
context:
space:
mode:
authorMarc Strapetz <marc.strapetz@syntevo.com>2010-04-20 21:01:19 +0200
committerShawn O. Pearce <spearce@spearce.org>2010-06-04 19:08:58 -0700
commit936e4ab2f2ad4847e22483b26eb61f0c8e56b70c (patch)
tree731290ad8d049ca21e3a483a346ebb36c4fcac15 /org.eclipse.jgit.http.server/src/org/eclipse
parent92eedd667dd75cda762b2ac758dcd1845b05886c (diff)
downloadjgit-936e4ab2f2ad4847e22483b26eb61f0c8e56b70c.tar.gz
jgit-936e4ab2f2ad4847e22483b26eb61f0c8e56b70c.zip
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
Diffstat (limited to 'org.eclipse.jgit.http.server/src/org/eclipse')
-rw-r--r--org.eclipse.jgit.http.server/src/org/eclipse/jgit/http/server/resolver/FileResolver.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/org.eclipse.jgit.http.server/src/org/eclipse/jgit/http/server/resolver/FileResolver.java b/org.eclipse.jgit.http.server/src/org/eclipse/jgit/http/server/resolver/FileResolver.java
index 82a0ce84a0..cc062dbe88 100644
--- a/org.eclipse.jgit.http.server/src/org/eclipse/jgit/http/server/resolver/FileResolver.java
+++ b/org.eclipse.jgit.http.server/src/org/eclipse/jgit/http/server/resolver/FileResolver.java
@@ -52,6 +52,7 @@ import org.eclipse.jgit.errors.RepositoryNotFoundException;
import org.eclipse.jgit.lib.Repository;
import org.eclipse.jgit.lib.RepositoryCache;
import org.eclipse.jgit.lib.RepositoryCache.FileKey;
+import org.eclipse.jgit.util.FS;
/** Default resolver serving from a single root path in local filesystem. */
public class FileResolver implements RepositoryResolver {
@@ -82,7 +83,7 @@ public class FileResolver implements RepositoryResolver {
final Repository db;
try {
final File gitdir = new File(basePath, repositoryName);
- db = RepositoryCache.open(FileKey.lenient(gitdir), true);
+ db = RepositoryCache.open(FileKey.lenient(gitdir, FS.DETECTED), true);
} catch (IOException e) {
throw new RepositoryNotFoundException(repositoryName, e);
}