Skip to content

Commit

Permalink
Fix error when running with --irb option
Browse files Browse the repository at this point in the history
uninitialized constant Gollum::Wiki (NameError)
  • Loading branch information
uk-ar committed Mar 25, 2013
1 parent dac1268 commit d84fdc7
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions bin/gollum
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,7 @@ if options['irb']
end

begin
require 'gollum-lib'
wiki = Gollum::Wiki.new(gollum_path, wiki_options)
if !wiki.exist? then raise Grit::InvalidGitRepositoryError end
puts "Loaded Gollum wiki at #{File.expand_path(gollum_path).inspect}."
Expand Down

0 comments on commit d84fdc7

Please sign in to comment.