return dir.delete();
}
@Test
public void testGetGitDirWorkspaceIsInRepo() throws Exception {
InitCommand command = new InitCommand();
File workspace = getWorkspaceRoot();
File parent = workspace.getParentFile();
command.setDirectory(parent);
Repository repository = command.call().getRepository();
assertNotNull(repository);
createWorkspace(SimpleMetaStore.DEFAULT_WORKSPACE_NAME);
JSONObject project = createProjectOrLink(workspaceLocation, getMethodName().concat("Project"), null);
String location = project.getString(ProtocolConstants.KEY_CONTENT_LOCATION);