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 -2
View File
@@ -9,10 +9,10 @@ module Gollum
# page_file_dir - String the directory in which all page files reside
#
# Returns this instance.
def initialize(path, page_file_dir = nil)
def initialize(path, page_file_dir = nil, bare = false)
@page_file_dir = page_file_dir
@path = path
@repo = Grit::Repo.new(path)
@repo = Grit::Repo.new(path, { :is_bare => bare })
clear
end