Robin Rosenberg
2013-09-01 02ede7f11c6fb28ca53fc240905cd1b140236f08
src/main/java/com/gitblit/models/RepositoryModel.java
@@ -46,10 +46,13 @@
   public String description;
   public List<String> owners;
   public Date lastChange;
   public String lastChangeAuthor;
   public boolean hasCommits;
   public boolean showRemoteBranches;
   public boolean useTickets;
   public boolean useDocs;
   public boolean useIncrementalPushTags;
   public String incrementalPushTagPrefix;
   public AccessRestrictionType accessRestriction;
   public AuthorizationControl authorizationControl;
   public boolean allowAuthenticated;
@@ -79,7 +82,8 @@
   public boolean verifyCommitter;
   public String gcThreshold;
   public int gcPeriod;
   public int maxActivityCommits;
   public int maxActivityCommits;
   public List<String> metricAuthorExclusions;
   
   public transient boolean isCollectingGarbage;
   public Date lastGC;
@@ -99,6 +103,7 @@
      this.federationStrategy = FederationStrategy.FEDERATE_THIS;   
      this.projectPath = StringUtils.getFirstPathElement(name);
      this.owners = new ArrayList<String>();
      this.isBare = true;
      
      addOwner(owner);
   }
@@ -183,6 +188,10 @@
      return !accessRestriction.atLeast(AccessRestrictionType.VIEW);
   }
   
   public boolean isShowActivity() {
      return maxActivityCommits > -1;
   }
   public boolean isSparkleshared() {
      return !StringUtils.isEmpty(sparkleshareId);
   }