summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/gitlab/manifest_import/manifest.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/gitlab/manifest_import/manifest.rb b/lib/gitlab/manifest_import/manifest.rb
index e18521fcdd4..df785e94d2e 100644
--- a/lib/gitlab/manifest_import/manifest.rb
+++ b/lib/gitlab/manifest_import/manifest.rb
@@ -18,8 +18,8 @@ module Gitlab
class Manifest
attr_reader :parsed_xml, :errors
- def initialize(file)
- @parsed_xml = Nokogiri::XML(file, &:strict)
+ def initialize(file_contents)
+ @parsed_xml = Nokogiri::XML(file_contents, &:strict)
@errors = []
rescue Nokogiri::XML::SyntaxError
@errors = ['The uploaded file is not a valid XML file.']