[PATCH 2/3] daemon.c: added upload-tar service
Signed-off-by: Franck Bui-Huu <vagabon.xyz@gmail.com>
---
daemon.c | 7 +++++++
1 files changed, 7 insertions(+), 0 deletions(-)
diff --git a/daemon.c b/daemon.c
index ed3a13d..381e6ae 100644
--- a/daemon.c
+++ b/daemon.c
@@ -247,6 +247,12 @@ static int service_upload_pack(const cha
return -1;
}
+static int service_upload_tar(const char *dir, const char *args)
+{
+ execl_git_cmd("upload-tar", dir, NULL);
+ return -1;
+}
+
/* service options */
#define NEED_REPO (1<<0)
@@ -258,6 +264,7 @@ struct service_info {
static struct service_info services[] = {
{ "git-upload-pack", service_upload_pack, NEED_REPO },
+ { "git-upload-tar", service_upload_tar, NEED_REPO },
};
static int run_service(char *cmdline)
--
1.4.2