diff --git a/platform/vcs-api/vcs-api-core/src/com/intellij/openapi/diff/impl/patch/TextPatchBuilder.java b/platform/vcs-api/vcs-api-core/src/com/intellij/openapi/diff/impl/patch/TextPatchBuilder.java index 187e5ec0d155..deefd7638307 100644 --- a/platform/vcs-api/vcs-api-core/src/com/intellij/openapi/diff/impl/patch/TextPatchBuilder.java +++ b/platform/vcs-api/vcs-api-core/src/com/intellij/openapi/diff/impl/patch/TextPatchBuilder.java @@ -174,11 +174,11 @@ public class TextPatchBuilder { } } - checkPathEndLine(patch, c.getAfter()); + checkPathEndLine(patch, afterRevision); } else if (!beforeRevision.getPath().equals(afterRevision.getPath())) { TextFilePatch movedPatch = buildMovedFile(beforeRevision, afterRevision); - checkPathEndLine(movedPatch, c.getAfter()); + checkPathEndLine(movedPatch, afterRevision); result.add(movedPatch); } }