Restore --bare option

This commit is contained in:
Dawa Ometto
2020-03-29 20:04:45 +02:00
parent 4c491a01db
commit 862c6d5d2e
2 changed files with 4 additions and 0 deletions
+3
View File
@@ -61,6 +61,9 @@ opts = OptionParser.new do |opts|
opts.on('-r', '--ref [REF]', 'Specify the branch to serve. Default: \'master\'.') do |ref|
wiki_options[:ref] = ref
end
opts.on("--bare", "Declare '<git-repo>' to be bare. This is only necessary when using the grit adapter.") do
wiki_options[:repo_is_bare] = true
end
opts.on('-a', '--adapter [ADAPTER]', 'Launch Gollum using a specific git adapter. Default: \'rugged\'.') do |adapter|
Gollum::GIT_ADAPTER = adapter
end