Skip to content

Commit

Permalink
[JBIDE-21565] fixed errors when creating/cloning test repo in EGitUti…
Browse files Browse the repository at this point in the history
…lsTest
  • Loading branch information
adietish committed Jan 22, 2016
1 parent 5c09968 commit 6873d3b
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -76,8 +76,8 @@ private TestRepository createTestRepository(TestProject project) throws IOExcept
TestRepository testRepository = new TestRepository(TestUtils.createGitDir(project));
testRepository.createMockSystemReader(ResourcesPlugin.getWorkspace().getRoot().getLocation());
testRepository.setUserAndEmail(GIT_USER, GIT_EMAIL);
testRepository.connect(testProject.getProject());
testRepository.add(testProject.getFile(".project"));
testRepository.connect(project.getProject());
testRepository.add(project.getFile(".project"));
testRepository.initialCommit();
return testRepository;
}
Expand All @@ -87,7 +87,7 @@ private TestRepository cloneRepository(TestRepository repository) throws URISynt
File workspaceDir = ResourcesPlugin.getWorkspace().getRoot().getLocation().toFile();
File clonedRepositoryFile =
new File(workspaceDir, "clonedRepository-" + String.valueOf(System.currentTimeMillis()));
return testRepository.cloneRepository(clonedRepositoryFile);
return repository.cloneRepository(clonedRepositoryFile);
}

@After
Expand Down

0 comments on commit 6873d3b

Please sign in to comment.