| | |
| | | * 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
|
| | |
| | | && 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
|
| | |
| | | && 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
|