James Moger
2012-03-28 1aa6e081ffe319ff3ddfa246783cb65dc1c71b3b
tests/com/gitblit/tests/LuceneExecutorTest.java
@@ -23,10 +23,12 @@
import org.eclipse.jgit.lib.Repository;
import org.junit.Test;
import com.gitblit.GitBlit;
import com.gitblit.LuceneExecutor;
import com.gitblit.models.RefModel;
import com.gitblit.models.RepositoryModel;
import com.gitblit.models.SearchResult;
import com.gitblit.utils.FileUtils;
import com.gitblit.utils.JGitUtils;
import com.gitblit.utils.StringUtils;
@@ -44,8 +46,7 @@
   
   private RepositoryModel newRepositoryModel(Repository repository) {      
      RepositoryModel model = new RepositoryModel();
      model.name = StringUtils.getRelativePath(GitBlitSuite.REPOSITORIES.getAbsolutePath(),
            repository.getDirectory().getAbsolutePath());
      model.name = FileUtils.getRelativePath(GitBlitSuite.REPOSITORIES, repository.getDirectory());
      model.hasCommits = JGitUtils.hasCommits(repository);
      
      // index all local branches