[git-log] escape backslashes (otherwise git doesn't like it)

This commit is contained in:
Kirill Likhodedov
2014-02-06 12:12:38 +04:00
parent 6b6f14ba0c
commit 7eea76acd4
@@ -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 <T> String joinFilters(Collection<T> filters, Function<T, String> toString) {