James Moger
2013-06-18 ff7d3cffc7af1f24a1db8d42758943cc05bcbaa0
src/test/java/com/gitblit/tests/GitServletTest.java
@@ -38,12 +38,12 @@
import com.gitblit.Constants.AuthorizationControl;
import com.gitblit.GitBlit;
import com.gitblit.Keys;
import com.gitblit.models.PushLogEntry;
import com.gitblit.models.RefLogEntry;
import com.gitblit.models.RepositoryModel;
import com.gitblit.models.UserModel;
import com.gitblit.utils.ArrayUtils;
import com.gitblit.utils.JGitUtils;
import com.gitblit.utils.PushLogUtils;
import com.gitblit.utils.RefLogUtils;
public class GitServletTest {
@@ -788,7 +788,7 @@
      String name = "refchecks/ticgit.git";
      File refChecks = new File(GitBlitSuite.REPOSITORIES, name);
      Repository repository = new FileRepositoryBuilder().setGitDir(refChecks).build();
      List<PushLogEntry> pushes = PushLogUtils.getPushLog(name, repository);
      List<RefLogEntry> pushes = RefLogUtils.getRefLog(name, repository);
      GitBlitSuite.close(repository);
      assertTrue("Repository has an empty push log!", pushes.size() > 0);
   }