Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/config
diff options
context:
space:
mode:
authorRobert Speicher <rspeicher@gmail.com>2016-01-30 03:49:07 +0300
committerRobert Speicher <rspeicher@gmail.com>2016-01-30 03:52:29 +0300
commitd97742570fce0512eddb6dc6c924d541aa4f57e4 (patch)
treea36e3b79cd3439b4d4d6de11b9e204f85e4131df /config
parentdec21517186f7406da2efd76569b4dff4fa711e0 (diff)
Increase the minimum length for commit SHA matching to 7
This is the git default and will help to prevent false positive matches. Closes #12706
Diffstat (limited to 'config')
-rw-r--r--config/routes.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/config/routes.rb b/config/routes.rb
index fdfdb449085..54cc338b605 100644
--- a/config/routes.rb
+++ b/config/routes.rb
@@ -490,7 +490,7 @@ Rails.application.routes.draw do
end
resource :avatar, only: [:show, :destroy]
- resources :commit, only: [:show], constraints: { id: /[[:alnum:]]{6,40}/ } do
+ resources :commit, only: [:show], constraints: { id: /\h{7,40}/ } do
member do
get :branches
get :builds