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

[PATCH] Let transport.c use git without a dash

From
PBPieter de Bie <pdebie@ai.rug.nl>
Date
Jan 1, 2008, 19:39 UTC
Message-ID
<1199216375-22161-1-git-send-email-pdebie@ai.rug.nl>

This fixes transport.c by using "git upload-pack" and "git receive pack". Using the old dashed form, git fetch would fail on a remote installation where the git binaries are installed in a separate dir ---

I think this might have been on the list before, but then it was never applied to master. git fetch fails when you have used make gitexecdir=/somewhereelse on the remote side, as it can't find git-upload-pack.

 transport.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/transport.c b/transport.c
index 4e151a9..ad4c7e0 100644
--- a/transport.c
+++ b/transport.c
@@ -721,10 +721,10 @@ struct transport *transport_get(struct remote *remote, const char *url)
 		ret->disconnect = disconnect_git;
 
 		data->thin = 1;
-		data->uploadpack = "git-upload-pack";
+		data->uploadpack = "git upload-pack";
 		if (remote && remote->uploadpack)
 			data->uploadpack = remote->uploadpack;
-		data->receivepack = "git-receive-pack";
+		data->receivepack = "git receive-pack";
 		if (remote && remote->receivepack)
 			data->receivepack = remote->receivepack;
 	}
-- 
1.5.4.rc2.3.gbe5a8-dirty
Next: Junio C Hamano
Message 1 of 2 in “Let transport.c use git without a dash”
  1. Let transport.c use git without a dashPieter de Bie, Jan 1, 2008
  2. Junio C HamanoJan 2, 2008

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.