Merge pull request #675 from uk-ar/fix-error-in-irb

Fix error when running with --irb option
This commit is contained in:
bootstraponline
2013-03-25 18:18:21 -07:00
2 changed files with 2 additions and 1 deletions
+1 -1
View File
@@ -586,7 +586,7 @@ like Rack::Auth, OmniAuth, etc.
```ruby
#!/usr/bin/env ruby
require 'rubygems'
require 'gollum/frontend/app'
require 'gollum/app'
gollum_path = File.expand_path(File.dirname(__FILE__)) # CHANGE THIS TO POINT TO YOUR OWN WIKI REPO
Precious::App.set(:gollum_path, gollum_path)
+1
View File
@@ -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}."