| | |
| | | /**
|
| | | * Extract the repository name from the url.
|
| | | *
|
| | | * @param url
|
| | | * @param cloneUrl
|
| | | * @return repository name
|
| | | */
|
| | | public static String getRepositoryName(String value) {
|
| | |
| | | } else {
|
| | | // common repository, user default server settings
|
| | | model.authorizationControl = AuthorizationControl.fromName(GitBlit.getString(Keys.git.defaultAuthorizationControl, ""));
|
| | | model.accessRestriction = AccessRestrictionType.fromName(GitBlit.getString(Keys.git.defaultAccessRestriction, ""));
|
| | | model.accessRestriction = AccessRestrictionType.fromName(GitBlit.getString(Keys.git.defaultAccessRestriction, "PUSH"));
|
| | | }
|
| | |
|
| | | // create the repository
|