diff --git a/README.md b/README.md
index 8162ca80..787eedf4 100644
--- a/README.md
+++ b/README.md
@@ -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`.2 |
| --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. |
diff --git a/bin/gollum b/bin/gollum
index 897a9f0d..a7165d31 100755
--- a/bin/gollum
+++ b/bin/gollum
@@ -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 '' 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