From 0f47b2f605ed4119a6042b72d3499b223f40ec90 Mon Sep 17 00:00:00 2001 From: James Moger <james.moger@gitblit.com> Date: Mon, 01 Apr 2013 17:41:22 -0400 Subject: [PATCH] Revised incremental push tags feature --- 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