Fix error when running with --irb option
uninitialized constant Gollum::Wiki (NameError)
This commit is contained in:
@@ -133,6 +133,7 @@ if options['irb']
|
|||||||
end
|
end
|
||||||
|
|
||||||
begin
|
begin
|
||||||
|
require 'gollum-lib'
|
||||||
wiki = Gollum::Wiki.new(gollum_path, wiki_options)
|
wiki = Gollum::Wiki.new(gollum_path, wiki_options)
|
||||||
if !wiki.exist? then raise Grit::InvalidGitRepositoryError end
|
if !wiki.exist? then raise Grit::InvalidGitRepositoryError end
|
||||||
puts "Loaded Gollum wiki at #{File.expand_path(gollum_path).inspect}."
|
puts "Loaded Gollum wiki at #{File.expand_path(gollum_path).inspect}."
|
||||||
|
|||||||
Reference in New Issue
Block a user