git/list[1] front-page[2] threads[3] people[4] search[5] about
 

[PATCH 2/3] daemon.c: added upload-tar service

From
FBFranck Bui-Huu <vagabon.xyz@gmail.com>
Date
Aug 31, 2006, 12:35 UTC
Message-ID
<11570277232250-git-send-email-vagabon.xyz@gmail.com>
In-Reply-To
<11570277231100-git-send-email-vagabon.xyz@gmail.com>
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
Previous: Franck Bui-HuuNext: Franck Bui-Huu
Message 5 of 11 in “git-daemon: plug new upload-tar command”
  1. 0/3 git-daemon: plug new upload-tar commandFranck Bui-Huu, Aug 31, 2006
  2. 1/3 daemon.c: introduce daemon's serviceFranck Bui-Huu, Aug 31, 2006
  3. Franck Bui-HuuAug 31, 2006
  4. 1/3 daemon.c: introduce daemon's service [take #2]Franck Bui-Huu, Aug 31, 2006
  5. 2/3 daemon.c: added upload-tar serviceFranck Bui-Huu, Aug 31, 2006
  6. 3/3 git-tar-tree.c: no need to be in a git repo when using --remoteFranck Bui-Huu, Aug 31, 2006
  7. Rene ScharfeAug 31, 2006
  8. Franck Bui-HuuSep 2, 2006
  9. Junio C HamanoSep 2, 2006
  10. Jakub NarebskiSep 2, 2006
  11. Franck Bui-HuuSep 2, 2006

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.