From 0f7788bb30b048fee1096f75ffb15436ebeb9fa4 Mon Sep 17 00:00:00 2001 From: Josseline Perdomo Date: Apr 28 2021 02:57:11 +0000 Subject: Set git hashes length to 7 --- diff --git a/dev/ansible/roles/pagure-dev/files/pagure.cfg b/dev/ansible/roles/pagure-dev/files/pagure.cfg index 16e97ee..ea75526 100644 --- a/dev/ansible/roles/pagure-dev/files/pagure.cfg +++ b/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 diff --git a/files/pagure.cfg.sample b/files/pagure.cfg.sample index bb39100..f1b8b45 100644 --- a/files/pagure.cfg.sample +++ b/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 diff --git a/pagure/default_config.py b/pagure/default_config.py index ff80b7f..ac6c812 100644 --- a/pagure/default_config.py +++ b/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 = "/"