Restore --bare option (#1512)

This commit is contained in:
Dawa Ometto
2020-03-29 20:19:48 +02:00
committed by GitHub
3 changed files with 5 additions and 1 deletions
+1 -1
View File
@@ -1,6 +1,6 @@
rvm:
- 2.3.0
- 2.4.0
- 2.6.0
- jruby-9.2.7.0
jdk:
- oraclejdk9
+1
View File
@@ -106,6 +106,7 @@ Gollum comes with the following command line options:
| --port | [PORT] | Specify the port to bind Gollum with. Default: `4567`. |
| --config | [FILE] | Specify path to Gollum's configuration file. |
| --ref | [REF] | Specify the git branch to serve. Default: `master`. |
| --bare | none | Tell Gollum that the git repository should be treated as bare. |
| --adapter | [ADAPTER] | Launch Gollum using a specific git adapter. Default: `rugged`.<sup>2</sup> |
| --base-path | [PATH] | Specify the leading portion of all Gollum URLs (path info). Setting this to `/wiki` will make the wiki accessible under `http://localhost:4567/wiki/`. Default: `/`. |
| --page-file-dir | [PATH] | Specify the subdirectory for all pages. If set, Gollum will only serve pages from this directory and its subdirectories. Default: repository root. |
+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