maven-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ol...@apache.org
Subject git commit: testing a fix for this bloo... windauze
Date Sun, 27 Oct 2013 07:20:41 GMT
Updated Branches:
  refs/heads/master f90e27f66 -> 2414017e0


testing a fix for this bloo... windauze


Project: http://git-wip-us.apache.org/repos/asf/maven-scm/repo
Commit: http://git-wip-us.apache.org/repos/asf/maven-scm/commit/2414017e
Tree: http://git-wip-us.apache.org/repos/asf/maven-scm/tree/2414017e
Diff: http://git-wip-us.apache.org/repos/asf/maven-scm/diff/2414017e

Branch: refs/heads/master
Commit: 2414017e0e08f7a0119a35a4ea7c92a6107da998
Parents: f90e27f
Author: Olivier Lamy <olamy@apache.org>
Authored: Sun Oct 27 18:20:33 2013 +1100
Committer: Olivier Lamy <olamy@apache.org>
Committed: Sun Oct 27 18:20:33 2013 +1100

----------------------------------------------------------------------
 .../git/jgit/command/checkout/JGitCheckOutCommand.java      | 9 +++++++++
 1 file changed, 9 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/maven-scm/blob/2414017e/maven-scm-providers/maven-scm-providers-git/maven-scm-provider-jgit/src/main/java/org/apache/maven/scm/provider/git/jgit/command/checkout/JGitCheckOutCommand.java
----------------------------------------------------------------------
diff --git a/maven-scm-providers/maven-scm-providers-git/maven-scm-provider-jgit/src/main/java/org/apache/maven/scm/provider/git/jgit/command/checkout/JGitCheckOutCommand.java
b/maven-scm-providers/maven-scm-providers-git/maven-scm-provider-jgit/src/main/java/org/apache/maven/scm/provider/git/jgit/command/checkout/JGitCheckOutCommand.java
index 75b6a22..faed84c 100644
--- a/maven-scm-providers/maven-scm-providers-git/maven-scm-provider-jgit/src/main/java/org/apache/maven/scm/provider/git/jgit/command/checkout/JGitCheckOutCommand.java
+++ b/maven-scm-providers/maven-scm-providers-git/maven-scm-provider-jgit/src/main/java/org/apache/maven/scm/provider/git/jgit/command/checkout/JGitCheckOutCommand.java
@@ -36,10 +36,12 @@ import org.apache.maven.scm.provider.git.jgit.command.remoteinfo.JGitRemoteInfoC
 import org.apache.maven.scm.provider.git.repository.GitScmProviderRepository;
 import org.codehaus.plexus.util.StringUtils;
 import org.eclipse.jgit.api.Git;
+import org.eclipse.jgit.internal.storage.file.WindowCache;
 import org.eclipse.jgit.lib.Constants;
 import org.eclipse.jgit.lib.ProgressMonitor;
 import org.eclipse.jgit.revwalk.RevCommit;
 import org.eclipse.jgit.revwalk.RevWalk;
+import org.eclipse.jgit.storage.file.WindowCacheConfig;
 import org.eclipse.jgit.transport.CredentialsProvider;
 import org.eclipse.jgit.treewalk.TreeWalk;
 
@@ -98,6 +100,13 @@ public class JGitCheckOutCommand
                     fileSet.getBasedir().delete();
                 }
 
+                // FIXME only if windauze
+                WindowCacheConfig cfg = new WindowCacheConfig();
+                cfg.setPackedGitMMAP(false);
+                WindowCache.reconfigure( cfg );
+
+
+
                 // no git repo seems to exist, let's clone the original repo
                 CredentialsProvider credentials = JGitUtils.getCredentials( (GitScmProviderRepository)
repo );
                 getLogger().info( "cloning [" + branch + "] to " + fileSet.getBasedir() );


Mime
View raw message