James Moger
2011-12-23 0d013a007d08d7a50e226c6066da3190e0ba779b
src/com/gitblit/GitBlit.java
@@ -1480,6 +1480,30 @@
      return scripts;
   }
   public List<String> getInheritedPreReceiveScripts(RepositoryModel repository) {
      Set<String> globals = new HashSet<String>();
      for (String script : getStrings(Keys.groovy.preReceiveScripts)) {
         if (script.endsWith(".groovy")) {
            globals.add(script.substring(0, script.lastIndexOf('.')));
         } else {
            globals.add(script);
         }
      }
      return new ArrayList<String>(globals);
   }
   public List<String> getInheritedPostReceiveScripts(RepositoryModel repository) {
      Set<String> globals = new HashSet<String>();
      for (String script : getStrings(Keys.groovy.postReceiveScripts)) {
         if (script.endsWith(".groovy")) {
            globals.add(script.substring(0, script.lastIndexOf('.')));
         } else {
            globals.add(script);
         }
      }
      return new ArrayList<String>(globals);
   }
   /**
    * Notify the administrators by email.
    *