Peter Allin
2012-08-07 a02998032e7077e3e744d5725485023097bf30f0
Don't try to index git submodules, they are seperate repositories and should be handled seperately.
1 files modified
5 ■■■■ changed files
src/com/gitblit/LuceneExecutor.java 5 ●●●● patch | view | raw | blame | history
src/com/gitblit/LuceneExecutor.java
@@ -69,6 +69,7 @@
import org.apache.lucene.util.Version;
import org.eclipse.jgit.diff.DiffEntry.ChangeType;
import org.eclipse.jgit.lib.Constants;
import org.eclipse.jgit.lib.FileMode;
import org.eclipse.jgit.lib.ObjectId;
import org.eclipse.jgit.lib.ObjectLoader;
import org.eclipse.jgit.lib.ObjectReader;
@@ -493,7 +494,9 @@
                
                Map<String, ObjectId> paths = new TreeMap<String, ObjectId>();
                while (treeWalk.next()) {
                    paths.put(treeWalk.getPathString(), treeWalk.getObjectId(0));
                    if (treeWalk.getFileMode(0) != FileMode.GITLINK) {
                        paths.put(treeWalk.getPathString(), treeWalk.getObjectId(0));
                    }
                }                
                ByteArrayOutputStream os = new ByteArrayOutputStream();