Pass through :is_bare option from wiki_options, allows Gollum to work with gitolite

This commit is contained in:
Arran Cudbard-Bell
2012-05-09 13:47:24 +02:00
parent a692ec1124
commit b36cd8a68e
2 changed files with 4 additions and 3 deletions
+2 -1
View File
@@ -151,8 +151,9 @@ module Gollum
path = path.path
end
@path = path
@repo_is_bare = options[:repo_is_bare]
@page_file_dir = options[:page_file_dir]
@access = options[:access] || GitAccess.new(path, @page_file_dir)
@access = options[:access] || GitAccess.new(path, @page_file_dir, @repo_is_bare)
@base_path = options[:base_path] || "/"
@page_class = options[:page_class] || self.class.page_class
@file_class = options[:file_class] || self.class.file_class