[#345] fix wiki path
This commit is contained in:
parent
197c33195a
commit
f9b298b8e8
|
@ -19,9 +19,9 @@ module Wiki
|
||||||
def create_wiki
|
def create_wiki
|
||||||
if has_wiki && !FileTest.exist?(wiki_path)
|
if has_wiki && !FileTest.exist?(wiki_path)
|
||||||
Grit::Repo.init_bare(wiki_path)
|
Grit::Repo.init_bare(wiki_path)
|
||||||
wiki = Gollum::Wiki.new(wiki_path, {base_path: Rails.application.routes.url_helpers.project_wiki_index_path(owner, self)})
|
wiki = Gollum::Wiki.new(wiki_path, { base_path: Rails.application.routes.url_helpers.project_wiki_index_path(self) })
|
||||||
wiki.write_page('Home', :markdown, I18n.t("wiki.seed.welcome_content"),
|
wiki.write_page('Home', :markdown, I18n.t("wiki.seed.welcome_content"),
|
||||||
{name: owner.name, email: owner.email, message: 'Initial commit'})
|
{ name: owner.name, email: owner.email, message: 'Initial commit' })
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue