Git annotation failure

Answered

Hi...

I am using IntelliJ 2016.1 for Linux and the annotate function (available via right-click on the bar at the left of a line of code) always fails with the message

Error:Failed to annotate: com.intellij.openapi.vcs.VcsException: fatal: internal error in diff-resolve-rename-copy
during executing git -c core.quotepath=false show -M --name-status --pretty=format:%x01%H%x02%ct%x02%P%x03 --encoding=UTF-8 7c39a0c85fb6dd7b1f1d2853a441ae20dae8e6ee --follow -- <filename>.java

The same behavior appeared in all previous versions of IntelliJ I have used (from 12 onwards, at least).

Other Git options (e.g., "Show History") work as expected.

Is there any solution to this?

Thanks.

 

 

7 comments
Comment actions Permalink

What git client version do you use? Did you try a more recent version?

0
Comment actions Permalink

git --version reports 1.7.2.2.

Do you think the issue will be resolved if I upgrade to 2.x?

0
Comment actions Permalink

Yes, it's very likely to fix the problem.

0
Comment actions Permalink

I updated to 1.7.12.4, as per this HOW-TO:

This indeed has fixed the issue.

Thanks.

0
Comment actions Permalink

I tried out the suggested solution of upgrading git, but the issue still persists.

One peculiar thing about this issue is that it only appears while annotating SQL files. Do you have any solution to this?

Thanks

0
Comment actions Permalink

Thanks for the reply @Serge
As suggested, I've opened an issue. Find it @ https://youtrack.jetbrains.com/issue/IDEA-206501

0

Please sign in to leave a comment.