public Repo(String dir) throws IOException {
		RepositoryBuilder rb=CoffeeGit.gerRepositoryBuilder();
		File fileDir=new File(dir);
		repo=rb.setGitDir(fileDir)
				.readEnvironment()
				.findGitDir()
				.build();
		
		String[] gitDirList=fileDir.list();
		boolean initFlag=false;
		for(int i=0;(!initFlag)&&i<gitDirList.length;i++)  if(gitDirList[i].equals(".git")) initFlag=true;
		
		if(!initFlag) status=RepoStatus.UNINITED;
		if(repo.getRef("refs/HEAD")==null) status=RepoStatus.EMPTY;
		else status=RepoStatus.FINE;
		
		alList=new LinkedList<RepoActionListener>();
	}