IDEA-56814 git: fix encoding issues in annotations

* We use same encoding to parse file content and git meta information.
  After a7c864a we no longer use file content, so this hack is no longer required.
* This fixes parse error on files in UTF-16
* This fixes parsing of non-ascii names
This commit is contained in:
Aleksey Pivovarov
2016-10-10 13:52:06 +03:00
parent ce7c601cf9
commit 83b0cc7623
@@ -155,7 +155,6 @@ public class GitAnnotationProvider implements AnnotationProviderEx {
VirtualFile root = GitUtil.getGitRoot(repositoryFilePath);
GitSimpleHandler h = new GitSimpleHandler(myProject, root, GitCommand.BLAME);
h.setStdoutSuppressed(true);
h.setCharset(file.getCharset());
h.addParameters("--porcelain", "-l", "-t", "-w");
if (revision == null) {
h.addParameters("HEAD");