* Strip off page_dir prefix from latest changes urls * Rename spurious next and previous_link * New format for LatestChanges#versions: detect renames
This commit is contained in:
+5
-1
@@ -19,7 +19,11 @@ $LOAD_PATH.unshift(dir)
|
||||
|
||||
module Gollum
|
||||
end
|
||||
Gollum::GIT_ADAPTER = ENV['GIT_ADAPTER'] if ENV['GIT_ADAPTER']
|
||||
if ENV['GIT_ADAPTER']
|
||||
Gollum::GIT_ADAPTER = ENV['GIT_ADAPTER']
|
||||
else
|
||||
Gollum::GIT_ADAPTER = RUBY_PLATFORM == 'java' ? 'rjgit' : 'rugged'
|
||||
end
|
||||
|
||||
ENV['RACK_ENV'] = 'test'
|
||||
require 'gollum'
|
||||
|
||||
Reference in New Issue
Block a user