Resolution.MINUTE);\r
IndexWriter writer = getIndexWriter(repositoryName);\r
for (PathChangeModel path : changedPaths) {\r
+ if (path.isSubmodule()) {\r
+ continue;\r
+ }\r
// delete the indexed blob\r
deleteBlob(repositoryName, branch, path.name);\r
\r
this.commitId = commitId;\r
}\r
\r
+ public boolean isSubmodule() {\r
+ return FileMode.GITLINK.equals(mode);\r
+ }\r
+ \r
public boolean isTree() {\r
return FileMode.TREE.equals(mode);\r
}\r
if (isTree && otherTree) {\r
return path.compareTo(o.path);\r
} else if (!isTree && !otherTree) {\r
+ if (isSubmodule() && o.isSubmodule()) {\r
+ return path.compareTo(o.path);\r
+ } else if (isSubmodule()) {\r
+ return -1;\r
+ } else if (o.isSubmodule()) {\r
+ return 1;\r
+ }\r
return path.compareTo(o.path);\r
} else if (isTree && !otherTree) {\r
return -1;\r