| | |
| | | return true;
|
| | | }
|
| | |
|
| | | @Override
|
| | | protected boolean requiresClientCertificate() {
|
| | | return GitBlit.getBoolean(Keys.git.requiresClientCertificate, false);
|
| | | }
|
| | |
|
| | | /**
|
| | | * Determine if the repository requires authentication.
|
| | | *
|
| | |
| | | protected RepositoryModel createRepository(UserModel user, String repository, String action) {
|
| | | boolean isPush = !StringUtils.isEmpty(action) && gitReceivePack.equals(action);
|
| | | if (isPush) {
|
| | | if (user.canCreateOnPush(repository)) {
|
| | | if (user.canCreate(repository)) {
|
| | | // user is pushing to a new repository
|
| | | // validate name
|
| | | if (repository.startsWith("../")) {
|