Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--org.eclipse.egit.ui.test/src/org/eclipse/egit/ui/common/LocalRepositoryTestCase.java1
1 files changed, 1 insertions, 0 deletions
diff --git a/org.eclipse.egit.ui.test/src/org/eclipse/egit/ui/common/LocalRepositoryTestCase.java b/org.eclipse.egit.ui.test/src/org/eclipse/egit/ui/common/LocalRepositoryTestCase.java
index 75e1d5d942..a42c1f9882 100644
--- a/org.eclipse.egit.ui.test/src/org/eclipse/egit/ui/common/LocalRepositoryTestCase.java
+++ b/org.eclipse.egit.ui.test/src/org/eclipse/egit/ui/common/LocalRepositoryTestCase.java
@@ -558,6 +558,7 @@ public abstract class LocalRepositoryTestCase extends EGitTestCase {
if (!prj.isAccessible())
throw new IllegalStateException("No project found");
IFile file = prj.getFile(new Path("folder/test.txt"));
+ file.refreshLocal(0, null);
file.setContents(new ByteArrayInputStream(newContent.getBytes(prj
.getDefaultCharset())), 0, null);
}

Back to the top