From 7eea76acd45f7000c8948ab8c8223b382f2525b9 Mon Sep 17 00:00:00 2001 From: Kirill Likhodedov Date: Thu, 6 Feb 2014 12:12:38 +0400 Subject: [PATCH] [git-log] escape backslashes (otherwise git doesn't like it) --- plugins/git4idea/src/git4idea/log/GitLogProvider.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/plugins/git4idea/src/git4idea/log/GitLogProvider.java b/plugins/git4idea/src/git4idea/log/GitLogProvider.java index f5d5bf2bd5e9..ed33df0718b0 100644 --- a/plugins/git4idea/src/git4idea/log/GitLogProvider.java +++ b/plugins/git4idea/src/git4idea/log/GitLogProvider.java @@ -272,7 +272,8 @@ public class GitLogProvider implements VcsLogProvider { } private static String prepareParameter(String paramName, String value) { - return "--" + paramName + "=" + value; // no value escaping needed, because the parameter itself will be quoted by GeneralCommandLine + // no value quoting needed, because the parameter itself will be quoted by GeneralCommandLine + return "--" + paramName + "=" + StringUtil.escapeBackSlashes(value); } private static String joinFilters(Collection filters, Function toString) {