From b9afce4d3db8dec34b22b07c952df814efc7335f Mon Sep 17 00:00:00 2001 From: James Moger <james.moger@gitblit.com> Date: Tue, 02 Apr 2013 10:43:52 -0400 Subject: [PATCH] Simplify resource loading --- src/test/java/com/gitblit/tests/GitBlitSuite.java | 12 ++++++++++++ 1 files changed, 12 insertions(+), 0 deletions(-) diff --git a/src/test/java/com/gitblit/tests/GitBlitSuite.java b/src/test/java/com/gitblit/tests/GitBlitSuite.java index b0179c3..64d792e 100644 --- a/src/test/java/com/gitblit/tests/GitBlitSuite.java +++ b/src/test/java/com/gitblit/tests/GitBlitSuite.java @@ -153,7 +153,9 @@ enableTickets("ticgit.git"); enableDocs("ticgit.git"); showRemoteBranches("ticgit.git"); + automaticallyTagBranchTips("ticgit.git"); showRemoteBranches("test/jgit.git"); + automaticallyTagBranchTips("test/jgit.git"); } } @@ -198,6 +200,16 @@ } } + private static void automaticallyTagBranchTips(String repositoryName) { + try { + RepositoryModel model = GitBlit.self().getRepositoryModel(repositoryName); + model.useIncrementalPushTags = true; + GitBlit.self().updateRepositoryModel(model.name, model, false); + } catch (GitBlitException g) { + g.printStackTrace(); + } + } + public static void close(File repository) { try { File gitDir = FileKey.resolve(repository, FS.detect()); -- Gitblit v1.9.1