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
diff options
context:
space:
mode:
authorAhmad Hassan <ahmad.hassan612@gmail.com>2018-07-17 16:12:29 +0300
committerAhmad Hassan <ahmad.hassan612@gmail.com>2018-07-19 13:23:46 +0300
commit8ea9c81593bd43f38bcafc0ca18408889970cbd6 (patch)
treebebe6c1d314b402a2940f3bccce9fa9cc49ef8bb /scripts
parent59b82fbcd48108682d58426975b581800672ca28 (diff)
Use rugged to validate ref name
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/lint-rugged5
1 files changed, 4 insertions, 1 deletions
diff --git a/scripts/lint-rugged b/scripts/lint-rugged
index cabd083e9f9..d0c2c544c47 100755
--- a/scripts/lint-rugged
+++ b/scripts/lint-rugged
@@ -14,7 +14,10 @@ ALLOWED = [
'lib/tasks/gitlab/cleanup.rake',
# The only place where Rugged code is still allowed in production
- 'lib/gitlab/git/'
+ 'lib/gitlab/git/',
+
+ # Needed to avoid using the git binary to validate a branch name
+ 'lib/gitlab/git_ref_validator.rb'
].freeze
rugged_lines = IO.popen(%w[git grep -i -n rugged -- app config lib], &:read).lines