| | |
| | |
|
| | | GitBlitWebSession session = GitBlitWebSession.get();
|
| | | UserModel user = session.getUser();
|
| | | if (user == null) {
|
| | | user = UserModel.ANONYMOUS;
|
| | | }
|
| | |
|
| | | // build project set for repository destination
|
| | | String defaultPath = null;
|
| | |
| | | // set the defaultProject to the current repository project
|
| | | if (StringUtils.isEmpty(repository.projectPath)) {
|
| | | defaultPath = "/";
|
| | | defaultName = repository.name;
|
| | | } else {
|
| | | defaultPath = repository.projectPath + "/";
|
| | | defaultName = repository.name.substring(defaultPath.length());
|
| | | }
|
| | | defaultName = repository.name.substring(defaultPath.length());
|
| | | pathNames.add(defaultPath);
|
| | | }
|
| | |
|