summaryrefslogtreecommitdiff
path: root/lib/gitlab/git_ref_validator.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/gitlab/git_ref_validator.rb')
-rw-r--r--lib/gitlab/git_ref_validator.rb12
1 files changed, 0 insertions, 12 deletions
diff --git a/lib/gitlab/git_ref_validator.rb b/lib/gitlab/git_ref_validator.rb
deleted file mode 100644
index 39d17def930..00000000000
--- a/lib/gitlab/git_ref_validator.rb
+++ /dev/null
@@ -1,12 +0,0 @@
-module Gitlab
- module GitRefValidator
- extend self
- # Validates a given name against the git reference specification
- #
- # Returns true for a valid reference name, false otherwise
- def validate(ref_name)
- Gitlab::Utils.system_silent(
- %W(git check-ref-format refs/#{ref_name}))
- end
- end
-end