jackrabbit-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ste...@apache.org
Subject svn commit: r1095396 - /jackrabbit/sandbox/microkernel/src/main/java/org/apache/jackrabbit/mk/store/GitStore.java
Date Wed, 20 Apr 2011 12:47:53 GMT
Author: stefan
Date: Wed Apr 20 12:47:53 2011
New Revision: 1095396

URL: http://svn.apache.org/viewvc?rev=1095396&view=rev
Log:
MicroKernel prototype (WIP)

Modified:
    jackrabbit/sandbox/microkernel/src/main/java/org/apache/jackrabbit/mk/store/GitStore.java

Modified: jackrabbit/sandbox/microkernel/src/main/java/org/apache/jackrabbit/mk/store/GitStore.java
URL: http://svn.apache.org/viewvc/jackrabbit/sandbox/microkernel/src/main/java/org/apache/jackrabbit/mk/store/GitStore.java?rev=1095396&r1=1095395&r2=1095396&view=diff
==============================================================================
--- jackrabbit/sandbox/microkernel/src/main/java/org/apache/jackrabbit/mk/store/GitStore.java
(original)
+++ jackrabbit/sandbox/microkernel/src/main/java/org/apache/jackrabbit/mk/store/GitStore.java
Wed Apr 20 12:47:53 2011
@@ -16,7 +16,6 @@
  */
 package org.apache.jackrabbit.mk.store;
 
-import org.apache.jackrabbit.mk.store.DataStore;
 import org.eclipse.jgit.lib.Constants;
 import org.eclipse.jgit.lib.ObjectId;
 import org.eclipse.jgit.lib.ObjectInserter;
@@ -76,7 +75,7 @@ public class GitStore implements DataSto
         }
         RefUpdate refUpd = rep.getRefDatabase().newUpdate("HEAD", false);
         refUpd.setNewObjectId(ObjectId.fromString(commitId));
-        RefUpdate.Result result = refUpd.update();
+        RefUpdate.Result result = refUpd.forceUpdate();
     }
 
     public String computeId(byte[] data) {



Mime
View raw message