Browse Source

Set git hashes length to 7

Josseline Perdomo 3 years ago
parent
commit
0f7788bb30

+ 1 - 1
dev/ansible/roles/pagure-dev/files/pagure.cfg

@@ -85,7 +85,7 @@ SSH_COMMAND_NON_REPOSPANNER = ([
 MAX_CONTENT_LENGTH = 4 * 1024 * 1024  # 4 megabytes
 
 ### Lenght for short commits ids or file hex
-SHORT_LENGTH = 6
+SHORT_LENGTH = 7
 
 ### IP addresses allowed to access the internal endpoints
 ### These endpoints are used by the milter and are security sensitive, thus

+ 1 - 1
files/pagure.cfg.sample

@@ -142,7 +142,7 @@ ITEM_PER_PAGE = 50
 MAX_CONTENT_LENGTH = 4 * 1024 * 1024  # 4 megabytes
 
 ### Lenght for short commits ids or file hex
-SHORT_LENGTH = 6
+SHORT_LENGTH = 7
 
 ### List of blacklisted project names that can conflicts for pagure's URLs
 ### or other

+ 1 - 1
pagure/default_config.py

@@ -283,7 +283,7 @@ SESSION_COOKIE_NAME = "pagure"
 CHECK_SESSION_IP = True
 
 # Lenght for short commits ids or file hex
-SHORT_LENGTH = 6
+SHORT_LENGTH = 7
 
 # Used by SESSION_COOKIE_PATH
 APPLICATION_ROOT = "/"