Make --version not cough up a furball.
Commit 8c625419b8 moved the require down,
which broke --version.
This commit is contained in:
+1
-1
@@ -15,6 +15,7 @@ HELP
|
|||||||
|
|
||||||
require 'optparse'
|
require 'optparse'
|
||||||
require 'rubygems'
|
require 'rubygems'
|
||||||
|
require 'gollum'
|
||||||
|
|
||||||
exec = {}
|
exec = {}
|
||||||
options = {}
|
options = {}
|
||||||
@@ -65,7 +66,6 @@ if options['irb']
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
require 'gollum'
|
|
||||||
begin
|
begin
|
||||||
wiki = Gollum::Wiki.new(gollum_path)
|
wiki = Gollum::Wiki.new(gollum_path)
|
||||||
if !wiki.exist? then raise Grit::InvalidGitRepositoryError end
|
if !wiki.exist? then raise Grit::InvalidGitRepositoryError end
|
||||||
|
|||||||
Reference in New Issue
Block a user