diff --git a/platform/vcs-impl/src/com/intellij/openapi/vcs/changes/shelf/ShelvedChange.java b/platform/vcs-impl/src/com/intellij/openapi/vcs/changes/shelf/ShelvedChange.java index 8f07765c07da..bae9a8a93993 100644 --- a/platform/vcs-impl/src/com/intellij/openapi/vcs/changes/shelf/ShelvedChange.java +++ b/platform/vcs-impl/src/com/intellij/openapi/vcs/changes/shelf/ShelvedChange.java @@ -122,7 +122,6 @@ public class ShelvedChange { File file = getAbsolutePath(baseDir, myBeforePath); FilePath beforePath = VcsUtil.getFilePath(file, false); - beforePath.refresh(); ContentRevision beforeRevision = null; if (myFileStatus != FileStatus.ADDED) { beforeRevision = new CurrentContentRevision(beforePath) { @@ -233,7 +232,6 @@ public class ShelvedChange { } private String getBaseContent() { - myBeforeFilePath.refresh(); return ReadAction.compute(() -> { final Document doc = FileDocumentManager.getInstance().getDocument(myBeforeFilePath.getVirtualFile()); return doc.getText();