Thread (8 messages) flat view 8 messages, 5 authors, 2016-06-15
DORMANTno replies

[PATCH] transport.c: call dash-less form of receive-pack and upload-pack on remote

From: Johannes Schindelin <hidden>
Date: 2016-06-15 22:43:55
Subsystem: the rest · Maintainer: Linus Torvalds

Possibly related (same subject, not in this thread)

Since we plan to move the dash-form (git-<whatever>) into an execdir, it
make sense to prepare our git protocol users for it.

Noticed by Eyvind Bernhardsen.

Signed-off-by: Johannes Schindelin <redacted>
---

	On Fri, 30 Nov 2007, Eyvind Bernhardsen wrote:

	> - When pushing to my system over ssh, git-receive-pack and
	> git-upload-pack are expected to be in $PATH.  I resolved the 
	> problem by putting symlinks in /usr/local/bin.

	How about this?  (I only compile-tested it...)

 transport.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/transport.c b/transport.c
index 50db980..7bd0846 100644
--- a/transport.c
+++ b/transport.c
@@ -736,10 +736,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.3.6.2088.g8c260
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help