| | |
| | | repositoryName.indexOf(DOT_GIT_EXT));
|
| | | }
|
| | | }
|
| | |
|
| | | |
| | | // confirm that the origin of any pre-existing repository matches
|
| | | // the clone url
|
| | | String fetchHead = null;
|
| | | Repository existingRepository = GitBlit.self().getRepository(repositoryName);
|
| | | |
| | | if (existingRepository == null && GitBlit.self().isCollectingGarbage(repositoryName)) {
|
| | | logger.warn(MessageFormat.format("Skipping local repository {0}, busy collecting garbage", repositoryName));
|
| | | continue;
|
| | | }
|
| | |
|
| | | if (existingRepository != null) {
|
| | | StoredConfig config = existingRepository.getConfig();
|
| | | config.load();
|
| | |
| | | // reparent all repository permissions if the local
|
| | | // repositories are stored within subfolders
|
| | | if (!StringUtils.isEmpty(registrationFolder)) {
|
| | | if (user.permissions != null && user.permissions.size() > 0) {
|
| | | if (user.permissions != null) {
|
| | | // pulling from >= 1.2 version
|
| | | Map<String, AccessPermission> copy = new HashMap<String, AccessPermission>(user.permissions);
|
| | | user.permissions.clear();
|
| | |
| | | GitBlit.self().updateUserModel(user.username, user, true);
|
| | | } else {
|
| | | // update repository permissions of local user
|
| | | if (user.permissions != null && user.permissions.size() > 0) {
|
| | | if (user.permissions != null) {
|
| | | // pulling from >= 1.2 version
|
| | | Map<String, AccessPermission> copy = new HashMap<String, AccessPermission>(user.permissions);
|
| | | for (Map.Entry<String, AccessPermission> entry : copy.entrySet()) {
|