Permalink
Browse files

Don't call org.eclipse.jgit.lib.Repository's refreshFromDisk()

This method was removed upstream [1], [2] as a part of refactoring.

[1] JGit commit: 01b5392cdbc12ce2e21fd1d1afbd61fdf97e1c38
[2] http://egit.eclipse.org/r/194

Signed-off-by: Mykola Nikishov <mn@mn.com.ua>
  • Loading branch information...
1 parent 0677bd3 commit e7236097661485a7effa1b4633b794f57e4eb20d @manandbytes manandbytes committed Jun 22, 2010
@@ -73,7 +73,6 @@ public void testNonEmptyCommit() throws Exception {
public void testInitialEmptyCommit() throws Exception {
toGitDirFile("packed-refs").delete();
- repository.refreshFromDisk();
CommitBuilder.create(repository).
time(getTime(), getTimeZone()).
log(logger).
@@ -84,7 +83,6 @@ public void testInitialEmptyCommit() throws Exception {
public void testInitialNonEmptyCommit() throws Exception {
toGitDirFile("packed-refs").delete();
- repository.refreshFromDisk();
CommitBuilder.create(repository).
time(getTime(), getTimeZone()).
log(logger).
@@ -97,7 +97,6 @@ protected void setUp() throws Exception {
time = TIME_INITIAL;
copyRepositoryFiles("default", repository);
- repository.refreshFromDisk();
repository.getConfig().load();
}

0 comments on commit e723609

Please sign in to comment.