about summary refs log tree commit homepage
path: root/examples/git.ru
diff options
context:
space:
mode:
Diffstat (limited to 'examples/git.ru')
-rw-r--r--examples/git.ru13
1 files changed, 13 insertions, 0 deletions
diff --git a/examples/git.ru b/examples/git.ru
new file mode 100644
index 0000000..59a31c9
--- /dev/null
+++ b/examples/git.ru
@@ -0,0 +1,13 @@
+#\-E none
+
+# See http://thread.gmane.org/gmane.comp.web.curl.general/10473/raw on
+# how to setup git for this.  A better version of the above patch was
+# accepted and committed on June 15, 2009, so you can pull the latest
+# curl CVS snapshot to try this out.
+require 'unicorn/app/inetd'
+
+use Rack::Lint
+use Rack::Chunked # important!
+run Unicorn::App::Inetd.new(
+ *%w(git daemon --verbose --inetd --export-all --base-path=/home/ew/unicorn)
+)