Commit 3c5b2a99 authored by Douwe Maan's avatar Douwe Maan

Merge pull request #9373 from gitlabhq/revert-9368-patch-1

Revert "No need to check if `repository_ref` is present"
parents 9562f028 25a870a6
......@@ -4,7 +4,11 @@ module Gitlab
def initialize(project_id, query, repository_ref = nil)
@project = Project.find(project_id)
@repository_ref = repository_ref
@repository_ref = if repository_ref.present?
repository_ref
else
nil
end
@query = Shellwords.shellescape(query) if query.present?
end
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment