| | |
| | | }
|
| | |
|
| | | // check for updates
|
| | | Repository r = getRepository(repositoryName);
|
| | | Repository r = getRepository(model.name);
|
| | | if (r == null) {
|
| | | // repository is missing
|
| | | removeFromCachedRepositoryList(repositoryName);
|
| | |
| | | if (!repository.name.toLowerCase().endsWith(org.eclipse.jgit.lib.Constants.DOT_GIT_EXT)) {
|
| | | repository.name += org.eclipse.jgit.lib.Constants.DOT_GIT_EXT;
|
| | | }
|
| | | if (new File(repositoriesFolder, repository.name).exists()) {
|
| | | if (hasRepository(repository.name)) {
|
| | | throw new GitBlitException(MessageFormat.format(
|
| | | "Can not create repository ''{0}'' because it already exists.",
|
| | | repository.name));
|