Merge branch 'stable-2.15'
* stable-2.15:
ProjectTagsScreen: Base visibility on the create refs/tags/* permission
Upgrade JGit to 4.9.4.201809090327-r
Upgrade JGit to 4.7.3.201809090215-r
Set version to 2.14.13-SNAPSHOT
ProjectTagsScreen: Base visibility on the create refs/tags/* permission
Set version to 2.15.4-SNAPSHOT
Set version to 2.14.12
[project.config] Allow to add commentLink entries
ElasticVersionTest: Align tested versions w/ ElasticContainer last ones
Assume correct relative or absolute URL from Weblink provider
AbstractSubmit: Remove redundant assertion about null IOException
ListMailFilter: Fix operator precedence warning raised by ErrorProne
ListProjects: Fix operator precedence warning raised by ErrorProne
ChangeBundle: Fix operator precedence warning raised by ErrorProne
Bazel: fix error_prone_warnings_toolchain rule
Elastic{Index|ReindexIT} Remove tests for 6.2 and 6.3
ElasticVersionTest#version6: Add missing test for V6_4
Allow more email RFC accepted chars in username
Make inheritance of receive.maxObjectSizeLimit optional
Allow to inherit receive.maxObjectSizeLimit from parent project
RestApiServlet: Skip capability check for administrators
CreateAccount: Simplify error message when username is invalid
Bazel: Provide toolchain with activated error prone warnings
Use ExternalId.isValidUsername instead of ExternalId.USER_NAME_PATTERN_REGEX
Move regular expressions for user name from Account to ExternalId
AccountIT: Add basic tests for creating user with {in}valid username
Revert refactoring of Account.USER_NAME_PATTERN
Fix code that caused changes to break in MS Edge
Add support for Elasticsearch 6.4.0
Upgrade elasticsearch-rest-client to 6.4.0
ElasticVersion: Say 'Unsupported' rather than 'Invalid'
ElasticQueryAdapter: Move isV6 method to ElasticVersion and simplify
Account.java: introduce compiled pattern and use where applicable
Optimize USER_NAME_PATTERN string and its usage
ElasticContainer: Test against Elasticsearch version 5.6.11
rest-api-accounts: Fix documentation of "Get Active" response
GetCapabilities#CheckOne: Return json content type
ConfigSuite: Instantiate class via getDeclaredConstructor()
Change-Id: I08136f1d27da08ce8a523f2dc062316723e17c45
This commit is contained in:
@@ -28,6 +28,7 @@ public class TransferConfig {
|
||||
private final PackConfig packConfig;
|
||||
private final long maxObjectSizeLimit;
|
||||
private final String maxObjectSizeLimitFormatted;
|
||||
private final boolean inheritProjectMaxObjectSizeLimit;
|
||||
|
||||
@Inject
|
||||
TransferConfig(@GerritServerConfig Config cfg) {
|
||||
@@ -42,6 +43,8 @@ public class TransferConfig {
|
||||
TimeUnit.SECONDS);
|
||||
maxObjectSizeLimit = cfg.getLong("receive", "maxObjectSizeLimit", 0);
|
||||
maxObjectSizeLimitFormatted = cfg.getString("receive", null, "maxObjectSizeLimit");
|
||||
inheritProjectMaxObjectSizeLimit =
|
||||
cfg.getBoolean("receive", "inheritProjectMaxObjectSizeLimit", false);
|
||||
|
||||
packConfig = new PackConfig();
|
||||
packConfig.setDeltaCompress(false);
|
||||
@@ -65,4 +68,8 @@ public class TransferConfig {
|
||||
public String getFormattedMaxObjectSizeLimit() {
|
||||
return maxObjectSizeLimitFormatted;
|
||||
}
|
||||
|
||||
public boolean getInheritProjectMaxObjectSizeLimit() {
|
||||
return inheritProjectMaxObjectSizeLimit;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user