Fix broken sha1 locking
[gitweb.git] / daemon.c
index a4a08f39d513cc71e68c0c1d20eab75d27a5a86f..a2954a0451316197621aed152c194d398aaee624 100644 (file)
--- a/daemon.c
+++ b/daemon.c
@@ -22,6 +22,7 @@ static const char daemon_usage[] =
 "           [--timeout=n] [--init-timeout=n] [--strict-paths]\n"
 "           [--base-path=path] [--user-path | --user-path=path]\n"
 "           [--reuseaddr] [--detach] [--pid-file=file]\n"
+"           [--[enable|disable|allow-override|forbid-override]=service]\n"
 "           [--user=user [[--group=group]] [directory...]";
 
 /* List of acceptable pathname prefixes */
@@ -324,15 +325,15 @@ static int upload_pack(void)
        return -1;
 }
 
-static int upload_tar(void)
+static int upload_archive(void)
 {
-       execl_git_cmd("upload-tar", ".", NULL);
+       execl_git_cmd("upload-archive", ".", NULL);
        return -1;
 }
 
 static struct daemon_service daemon_service[] = {
+       { "upload-archive", "uploadarch", upload_archive, 0, 1 },
        { "upload-pack", "uploadpack", upload_pack, 1, 1 },
-       { "upload-tar", "uploadtar", upload_tar, 0, 1 },
 };
 
 static void enable_service(const char *name, int ena) {