From 4838c534a2f29109e7e5bcf8bad074fd4fa17f6d Mon Sep 17 00:00:00 2001 From: James Moger Date: Thu, 29 Sep 2011 11:09:22 -0400 Subject: [PATCH] Set default federation strategy in model (issue 20) --- docs/00_index.mkd | 1 + docs/04_releases.mkd | 1 + src/com/gitblit/models/RepositoryModel.java | 3 ++- 3 files changed, 4 insertions(+), 1 deletion(-) diff --git a/docs/00_index.mkd b/docs/00_index.mkd index 48d373b7..2c40e1ef 100644 --- a/docs/00_index.mkd +++ b/docs/00_index.mkd @@ -28,6 +28,7 @@ Gitblit requires a Java 6 Runtime Environment (JRE) or a Java 6 Development Kit **%VERSION%** ([go](http://code.google.com/p/gitblit/downloads/detail?name=%GO%)|[war](http://code.google.com/p/gitblit/downloads/detail?name=%WAR%)|[fedclient](http://code.google.com/p/gitblit/downloads/detail?name=%FEDCLIENT%)) based on [%JGIT%][jgit]   *released %BUILDDATE%* +- fixed: Null pointer exception if did not set federation strategy (issue 20) - fixed: Gitblit GO allows SSL renegotiation if running on Java 1.6.0_22 or later - added: IUserService.setup(IStoredSettings) for custom user service implementations diff --git a/docs/04_releases.mkd b/docs/04_releases.mkd index c63f6ebd..667e5f2e 100644 --- a/docs/04_releases.mkd +++ b/docs/04_releases.mkd @@ -3,6 +3,7 @@ ### Current Release **%VERSION%** ([go](http://code.google.com/p/gitblit/downloads/detail?name=%GO%)|[war](http://code.google.com/p/gitblit/downloads/detail?name=%WAR%)|[fedclient](http://code.google.com/p/gitblit/downloads/detail?name=%FEDCLIENT%)) based on [%JGIT%][jgit]   *released %BUILDDATE%* +- fixed: Null pointer exception if did not set federation strategy (issue 20) - fixed: Gitblit GO allows SSL renegotiation if running on Java 1.6.0_22 or later - added: IUserService.setup(IStoredSettings) for custom user service implementations diff --git a/src/com/gitblit/models/RepositoryModel.java b/src/com/gitblit/models/RepositoryModel.java index 0f1a676b..e85fd6a5 100644 --- a/src/com/gitblit/models/RepositoryModel.java +++ b/src/com/gitblit/models/RepositoryModel.java @@ -63,7 +63,8 @@ public class RepositoryModel implements Serializable, Comparable(); + this.federationSets = new ArrayList(); + this.federationStrategy = FederationStrategy.FEDERATE_THIS; } @Override -- 2.39.5