From cb285cbfddfc0b633d6b8cdb4dc0d2bd2b8b51ef Mon Sep 17 00:00:00 2001 From: James Moger <james.moger@gitblit.com> Date: Thu, 05 Jan 2012 17:34:05 -0500 Subject: [PATCH] Fixed bug in receive hook for repositories in subfolders --- src/com/gitblit/models/RepositoryModel.java | 8 +++++++- 1 files changed, 7 insertions(+), 1 deletions(-) diff --git a/src/com/gitblit/models/RepositoryModel.java b/src/com/gitblit/models/RepositoryModel.java index e85fd6a..7e33ab0 100644 --- a/src/com/gitblit/models/RepositoryModel.java +++ b/src/com/gitblit/models/RepositoryModel.java @@ -22,6 +22,7 @@ import com.gitblit.Constants.AccessRestrictionType; import com.gitblit.Constants.FederationStrategy; +import com.gitblit.utils.StringUtils; /** * RepositoryModel is a serializable model class that represents a Gitblit @@ -49,9 +50,14 @@ public FederationStrategy federationStrategy; public List<String> federationSets; public boolean isFederated; + public boolean skipSizeCalculation; + public boolean skipSummaryMetrics; public String frequency; public String origin; public String size; + public List<String> preReceiveScripts; + public List<String> postReceiveScripts; + public List<String> mailingLists; public RepositoryModel() { this("", "", "", new Date(0)); @@ -74,6 +80,6 @@ @Override public int compareTo(RepositoryModel o) { - return name.compareTo(o.name); + return StringUtils.compareRepositoryNames(name, o.name); } } \ No newline at end of file -- Gitblit v1.9.1