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:
authorValery Sizov <vsv2711@gmail.com>2014-11-06 14:07:16 +0300
committerValery Sizov <vsv2711@gmail.com>2014-11-06 14:07:16 +0300
commitd1b489e048e2bd9304ae335d9105e6efde99012b (patch)
treee6efd06a0fb92f936fb1931b0c51c1ba3b581bcd /lib/gitlab/git_ref_validator.rb
parentb33d4bc2f1d26ee3526b9d7f530f468a9d5b5a5e (diff)
Revert "Revert "Don't output to stdout from lib non-interactive methods""
This reverts commit b33d4bc2f1d26ee3526b9d7f530f468a9d5b5a5e.
Diffstat (limited to 'lib/gitlab/git_ref_validator.rb')
-rw-r--r--lib/gitlab/git_ref_validator.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/gitlab/git_ref_validator.rb b/lib/gitlab/git_ref_validator.rb
index 13cb08948bb..0fdd4dbe577 100644
--- a/lib/gitlab/git_ref_validator.rb
+++ b/lib/gitlab/git_ref_validator.rb
@@ -5,7 +5,8 @@ module Gitlab
#
# Returns true for a valid reference name, false otherwise
def validate(ref_name)
- system *%W(git check-ref-format refs/#{ref_name})
+ Gitlab::Utils.system_silent(
+ %W(git check-ref-format refs/#{ref_name})) == 0
end
end
end