* [PATCH] Let transport.c use git without a dash
@ 2008-01-01 19:39 Pieter de Bie
2008-01-02 2:31 ` Junio C Hamano
0 siblings, 1 reply; 2+ messages in thread
From: Pieter de Bie @ 2008-01-01 19:39 UTC (permalink / raw)
To: git, gitster; +Cc: Pieter de Bie
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
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] Let transport.c use git without a dash
2008-01-01 19:39 [PATCH] Let transport.c use git without a dash Pieter de Bie
@ 2008-01-02 2:31 ` Junio C Hamano
0 siblings, 0 replies; 2+ messages in thread
From: Junio C Hamano @ 2008-01-02 2:31 UTC (permalink / raw)
To: Pieter de Bie; +Cc: git
Pieter de Bie <pdebie@ai.rug.nl> writes:
> 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.
Two questions.
(1) There has long been a support for specifying where your
out-of-PATH receive-pack and upload-pack are to be found.
Is it inadequate, and if so why?
(2) data->receivepack is copied to args.receivepack in
git_transport_push() and then eventually given as prog
parameter to git_connect(), which is sent to the shell on
the other end. If the git restricted shell is in use, that
is compared to the list of commands shell.c::cmd_list[];
and separating "git-receive-pack" into two words like your
patch would break it, I suspect. Have you tested this
codepath?
In the longer term (definitely before 1.6.0), we should rethink
the way --receive-pack (given to "git push") and --upload-pack
(given to "git fetch") options are handled. We are heading
towards "a single git binary to rule them all", so it might make
sense to deprecate these two options and instead have the caller
specify the path to "git" itself (which in turn knows how to
invoke receive-pack and upload-pack subcommands).
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2008-01-02 2:32 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-01-01 19:39 [PATCH] Let transport.c use git without a dash Pieter de Bie
2008-01-02 2:31 ` Junio C Hamano
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).