import org.apache.lucene.util.Version;\r
import org.eclipse.jgit.diff.DiffEntry.ChangeType;\r
import org.eclipse.jgit.lib.Constants;\r
+import org.eclipse.jgit.lib.FileMode;\r
import org.eclipse.jgit.lib.ObjectId;\r
import org.eclipse.jgit.lib.ObjectLoader;\r
import org.eclipse.jgit.lib.ObjectReader;\r
\r
Map<String, ObjectId> paths = new TreeMap<String, ObjectId>();\r
while (treeWalk.next()) {\r
- paths.put(treeWalk.getPathString(), treeWalk.getObjectId(0));\r
+ if (treeWalk.getFileMode(0) != FileMode.GITLINK) {\r
+ paths.put(treeWalk.getPathString(), treeWalk.getObjectId(0));\r
+ }\r
} \r
\r
ByteArrayOutputStream os = new ByteArrayOutputStream();\r