From d7ec6e5fc2b5c34c85efe8ab186b99de7b4116a7 Mon Sep 17 00:00:00 2001
From: fifthgnat <fifthgnat@gmail.com>
Date: Thu, 26 Apr 2012 00:51:20 -0400
Subject: [PATCH] force encoding JSON response as UTF-8

---
 tests/com/gitblit/tests/JGitUtilsTest.java |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/tests/com/gitblit/tests/JGitUtilsTest.java b/tests/com/gitblit/tests/JGitUtilsTest.java
index e649769..74531fa 100644
--- a/tests/com/gitblit/tests/JGitUtilsTest.java
+++ b/tests/com/gitblit/tests/JGitUtilsTest.java
@@ -97,11 +97,11 @@
 
 	@Test
 	public void testLastCommit() throws Exception {
-		assertEquals(new Date(0), JGitUtils.getLastChange(null, null));
+		assertEquals(new Date(0), JGitUtils.getLastChange(null));
 
 		Repository repository = GitBlitSuite.getHelloworldRepository();
 		assertTrue(JGitUtils.getCommit(repository, null) != null);
-		Date date = JGitUtils.getLastChange(repository, null);
+		Date date = JGitUtils.getLastChange(repository);
 		repository.close();
 		assertNotNull("Could not get last repository change date!", date);
 	}
@@ -119,7 +119,7 @@
 			assertNull(JGitUtils.getFirstCommit(repository, null));
 			assertEquals(folder.lastModified(), JGitUtils.getFirstChange(repository, null)
 					.getTime());
-			assertEquals(folder.lastModified(), JGitUtils.getLastChange(repository, null).getTime());
+			assertEquals(folder.lastModified(), JGitUtils.getLastChange(repository).getTime());
 			assertNull(JGitUtils.getCommit(repository, null));
 			repository.close();
 			assertTrue(GitBlit.self().deleteRepository(repositoryName));

--
Gitblit v1.9.1