summaryrefslogtreecommitdiffstats
path: root/org.eclipse.jgit.pgm.test/src
diff options
context:
space:
mode:
authorRĂ¼diger Herrmann <ruediger.herrmann@gmx.de>2016-05-21 15:19:24 +0200
committerDavid Pursehouse <david.pursehouse@gmail.com>2016-10-23 15:29:17 +0900
commita5eccf4a4d25534da73d39416454ab243531865a (patch)
treedf0b8b8ea8c3ef6d70c3c2e4e98b4acb226f44aa /org.eclipse.jgit.pgm.test/src
parent03046d0f60810ec01d830e6efb3291e4a161512a (diff)
downloadjgit-a5eccf4a4d25534da73d39416454ab243531865a.tar.gz
jgit-a5eccf4a4d25534da73d39416454ab243531865a.zip
Preserve backslashes within double quotes in CLIGitCommand::split()
Change-Id: Ia6a56512baa6a0f27e2eef1b19ebb60291ba377f Signed-off-by: RĂ¼diger Herrmann <ruediger.herrmann@gmx.de>
Diffstat (limited to 'org.eclipse.jgit.pgm.test/src')
-rw-r--r--org.eclipse.jgit.pgm.test/src/org/eclipse/jgit/pgm/CLIGitCommand.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/org.eclipse.jgit.pgm.test/src/org/eclipse/jgit/pgm/CLIGitCommand.java b/org.eclipse.jgit.pgm.test/src/org/eclipse/jgit/pgm/CLIGitCommand.java
index 3f396563c2..6a0a233806 100644
--- a/org.eclipse.jgit.pgm.test/src/org/eclipse/jgit/pgm/CLIGitCommand.java
+++ b/org.eclipse.jgit.pgm.test/src/org/eclipse/jgit/pgm/CLIGitCommand.java
@@ -218,7 +218,7 @@ public class CLIGitCommand extends Main {
inquote = !inquote;
continue;
case '\\':
- if (inquote || ip == commandLine.length())
+ if (inDblQuote || inquote || ip == commandLine.length())
r.append(b); // literal within a quote
else
r.append(commandLine.charAt(ip++));