James Moger
2014-04-17 1d78b8b372f15d89f10fd32cb0227a6a7966de3c
src/main/java/com/gitblit/service/LuceneService.java
@@ -194,7 +194,7 @@
    * Synchronously indexes a repository. This may build a complete index of a
    * repository or it may update an existing index.
    *
    * @param name
    * @param displayName
    *            the name of the repository
    * @param repository
    *            the repository object
@@ -437,7 +437,7 @@
               // skip non-annotated tags
               continue;
            }
            if (!tags.containsKey(tag.getObjectId())) {
            if (!tags.containsKey(tag.getObjectId().getName())) {
               tags.put(tag.getReferencedObjectId().getName(), new ArrayList<String>());
            }
            tags.get(tag.getReferencedObjectId().getName()).add(tag.displayName);
@@ -476,8 +476,8 @@
                  && branch.equals(defaultBranch)) {
               // indexing "default" branch
               indexBranch = true;
            } else if (branch.getName().startsWith(com.gitblit.Constants.R_GITBLIT)) {
               // skip Gitblit internal branches
            } else if (branch.getName().startsWith(com.gitblit.Constants.R_META)) {
               // skip internal meta branches
               indexBranch = false;
            } else {
               // normal explicit branch check
@@ -760,7 +760,7 @@
               // skip non-annotated tags
               continue;
            }
            if (!tags.containsKey(tag.getObjectId())) {
            if (!tags.containsKey(tag.getObjectId().getName())) {
               tags.put(tag.getReferencedObjectId().getName(), new ArrayList<String>());
            }
            tags.get(tag.getReferencedObjectId().getName()).add(tag.displayName);
@@ -807,8 +807,8 @@
                  && branch.equals(defaultBranch)) {
               // indexing "default" branch
               indexBranch = true;
            } else if (branch.getName().startsWith(com.gitblit.Constants.R_GITBLIT)) {
               // ignore internal Gitblit branches
            } else if (branch.getName().startsWith(com.gitblit.Constants.R_META)) {
               // ignore internal meta branches
               indexBranch = false;
            } else {
               // normal explicit branch check