summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorposativ <info@posativ.org>2012-04-24 17:32:54 +0200
committerposativ <info@posativ.org>2012-04-24 17:32:54 +0200
commit83b7ff84be501c341b3d5433bb7f46e1aac369d4 (patch)
tree9af8fd06760774e46c955f97cb231a8ce6d5fd99 /bin
parentef35addceb50ad6372070b949eb3f42ba0c4a271 (diff)
add Dulwich's smart HTTP Middleware
Diffstat (limited to 'bin')
-rwxr-xr-xbin/klaus4
1 files changed, 3 insertions, 1 deletions
diff --git a/bin/klaus b/bin/klaus
index f08b62b..55661fb 100755
--- a/bin/klaus
+++ b/bin/klaus
@@ -24,6 +24,8 @@ if __name__ == '__main__':
help="webserver port (default: 8080)"),
make_option("--prefix", type=str, default='/', dest="prefix",
help="serve on given sub uri"),
+ make_option("-s", "--smarthttp", action="store_true", dest="smarthttp",
+ help="serve git repositories the smart way", default=False),
make_option("-r", "--use-reloader", action="store_true", dest="reloader",
help=SUPPRESS_HELP, default=False),
make_option("--debug", action="store_true", dest="debug",
@@ -44,7 +46,7 @@ if __name__ == '__main__':
print '%r: Not a git repository' % path
args.remove(path)
- app = make_app(args, options.prefix)
+ app = make_app(args, options.prefix, options.smarthttp)
if options.debug:
from werkzeug.debug import DebuggedApplication