Use 'git upload-pack' for local transport and not 'git-upload-pack'
commit6927eda61a3ff11e9a096f342078ebb020fc7d48
authorShawn O. Pearce <spearce@spearce.org>
Thu, 3 Jul 2008 03:58:09 +0000 (2 23:58 -0400)
committerRobin Rosenberg <robin.rosenberg@dewire.com>
Thu, 3 Jul 2008 18:11:48 +0000 (3 20:11 +0200)
treee2bc769de58f69610a3e12f6db91005fa97f48a2
parent89bba89d21bd0a717d601a46fb70fe67d507cab1
Use 'git upload-pack' for local transport and not 'git-upload-pack'

Since Git 1.6.0 and later is heading towards moving the dash form
of commands out of the user's $PATH and into the libexec directory
we may not have 'git-upload-pack' or 'git-receive-pack' in $PATH
when the JRE tries to startup C Git for a local transport.  Instead
we should use the git wrapper, as it can select the right libexec
directory and start the correct helper program, or perform the task
internally if it is a builtin command.

In the future we should eliminate this reliance on C Git for any
sort of local transport operation.  We have direct filesystem IO
available to read from the source repository, so there is little
execuse for us to be invoking C Git for this special case.  Until
we fix it, we should at least try to ensure it works for any user.

Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
Signed-off-by: Robin Rosenberg <robin.rosenberg@dewire.com>
org.spearce.jgit/src/org/spearce/jgit/transport/TransportLocal.java