13 lines
308 B
Ruby
13 lines
308 B
Ruby
module Gollum
|
|
Gollum::GIT_ADAPTER = "my"
|
|
end
|
|
|
|
Gollum::Hook.register(:post_commit, :hook_id) do |committer, sha1|
|
|
committer.wiki.repo.git.pull('origin', committer.wiki.ref)
|
|
committer.wiki.repo.git.push('origin', committer.wiki.ref)
|
|
end
|
|
|
|
wiki_options = {}
|
|
|
|
Precious::App.set(:wiki_options, wiki_options)
|