Add Bourne style quoting for TransportGitSsh
commitfd93b0a2b584ce317e2a08816862da64c18b4518
authorShawn O. Pearce <spearce@spearce.org>
Wed, 10 Dec 2008 23:59:53 +0000 (10 15:59 -0800)
committerRobin Rosenberg <robin.rosenberg@dewire.com>
Sat, 13 Dec 2008 02:13:24 +0000 (13 03:13 +0100)
tree6622524775cc9ab17b3fc1e31b2c1472cdc8d103
parent3f3ec0bc1f068ada5908fc6d48cf7483a8b4fa95
Add Bourne style quoting for TransportGitSsh

Now that we have a nice QuotedString abstraction we can port our
string quoting logic from being private within the SSH transport
code to being available in the rest of the library.

Currently we only support the super-restrictive quoting style used
for the repository path name argument over SSH.  We don't support the
"minimal" style used to invoke the command name, nor do we support
the ~user/ style format, which cannot be quoted.

Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
Signed-off-by: Robin Rosenberg <robin.rosenberg@dewire.com>
org.spearce.jgit.test/tst/org/spearce/jgit/util/QuotedStringBourneStyleTest.java [new file with mode: 0644]
org.spearce.jgit/src/org/spearce/jgit/transport/TransportGitSsh.java
org.spearce.jgit/src/org/spearce/jgit/util/QuotedString.java