| | |
| | | import com.gitblit.GitBlit;
|
| | | import com.gitblit.Keys;
|
| | | import com.gitblit.models.PathModel;
|
| | | import com.gitblit.models.SubmoduleModel;
|
| | | import com.gitblit.models.PathModel.PathChangeModel;
|
| | | import com.gitblit.models.RefModel;
|
| | | import com.gitblit.models.SubmoduleModel;
|
| | | import com.gitblit.utils.JGitUtils;
|
| | | import com.gitblit.utils.StringUtils;
|
| | | import com.gitblit.wicket.WicketUtils;
|
| | |
| | | }
|
| | |
|
| | | final boolean isTree = matchingPath == null ? true : matchingPath.isTree();
|
| | | final boolean isSubmodule = matchingPath == null ? true : matchingPath.isSubmodule();
|
| | | final boolean isSubmodule = matchingPath == null ? false : matchingPath.isSubmodule();
|
| | |
|
| | | // submodule
|
| | | SubmoduleModel submodule = getSubmodule(submodules, repositoryName, matchingPath.path);
|
| | | final String submodulePath;
|
| | | final boolean hasSubmodule;
|
| | | if (submodule != null) {
|
| | | if (isSubmodule) {
|
| | | SubmoduleModel submodule = getSubmodule(submodules, repositoryName, matchingPath == null ? null : matchingPath.path);
|
| | | submodulePath = submodule.gitblitPath;
|
| | | hasSubmodule = submodule.hasSubmodule;
|
| | | } else {
|