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) {