summaryrefslogtreecommitdiffstats
path: root/src/com/gitblit/tests/JGitUtilsTest.java
diff options
context:
space:
mode:
authorJames Moger <james.moger@gitblit.com>2011-04-20 07:53:15 -0400
committerJames Moger <james.moger@gitblit.com>2011-04-20 07:53:15 -0400
commit45c0d6ed8c9c3afc4d09200358ee2d53f06023e2 (patch)
treee5d8665c0510ba4016e8f5ebe3e35a48f58e3f08 /src/com/gitblit/tests/JGitUtilsTest.java
parent6de3671263c307ab66ab63551064c9224c9c2665 (diff)
downloadgitblit-45c0d6ed8c9c3afc4d09200358ee2d53f06023e2.tar.gz
gitblit-45c0d6ed8c9c3afc4d09200358ee2d53f06023e2.zip
Tag diamonds and sliding date scale on activity graph.
Diffstat (limited to 'src/com/gitblit/tests/JGitUtilsTest.java')
-rw-r--r--src/com/gitblit/tests/JGitUtilsTest.java8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/com/gitblit/tests/JGitUtilsTest.java b/src/com/gitblit/tests/JGitUtilsTest.java
index 0ebcd71e..f3c798f1 100644
--- a/src/com/gitblit/tests/JGitUtilsTest.java
+++ b/src/com/gitblit/tests/JGitUtilsTest.java
@@ -50,6 +50,14 @@ public class JGitUtilsTest extends TestCase {
r.close();
assertTrue("Could not get last repository change date!", date != null);
}
+
+ public void testFirstCommit() throws Exception {
+ Repository r = getRepository();
+ RevCommit commit = JGitUtils.getFirstCommit(r, null);
+ r.close();
+ assertTrue("Could not get first commit!", commit != null);
+ System.out.println(commit.getName() + " " + commit.getShortMessage());
+ }
public void testRetrieveRevObject() throws Exception {
Repository r = getRepository();