]> source.dussan.org Git - jgit.git/commit
Fix JGit --upload-pack, --receive-pack options 16/2416/4
authorShawn O. Pearce <spearce@spearce.org>
Fri, 4 Feb 2011 13:51:27 +0000 (05:51 -0800)
committerShawn O. Pearce <spearce@spearce.org>
Sun, 6 Feb 2011 01:40:54 +0000 (17:40 -0800)
commitc6423932bf466af76daf2cf38f37bc23cd16bf63
tree2e68a05b6c0059cff6d4dd1bef96be634e2adce0
parent78e61ea2519f0877c76216b57cf9554639383e70
Fix JGit --upload-pack, --receive-pack options

JGit did not use sh -c to run the receive-pack or upload-pack programs
locally, which caused errors if these strings contained spaces and
needed the local shell to evaluate them.

Win32 support using cmd.exe /c is completely untested, but seems like
it should work based on the limited information I could get through
Google search results.

Bug: 336301
Change-Id: I22e5e3492fdebbae092d1ce6b47ad411e57cc1ba
Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
org.eclipse.jgit/src/org/eclipse/jgit/transport/TransportLocal.java
org.eclipse.jgit/src/org/eclipse/jgit/util/FS.java
org.eclipse.jgit/src/org/eclipse/jgit/util/FS_POSIX.java
org.eclipse.jgit/src/org/eclipse/jgit/util/FS_Win32.java
org.eclipse.jgit/src/org/eclipse/jgit/util/FS_Win32_Cygwin.java