James Moger
2013-07-19 42e19382d28d06eda0ffbcda01fbfed5c3538dd8
src/main/java/com/gitblit/GitFilter.java
@@ -43,7 +43,7 @@
   /**
    * Extract the repository name from the url.
    * 
    * @param url
    * @param cloneUrl
    * @return repository name
    */
   public static String getRepositoryName(String value) {
@@ -112,15 +112,8 @@
    */
   @Override
   protected boolean isActionAllowed(RepositoryModel repository, String action) {
      if (!StringUtils.isEmpty(action)) {
         if (action.equals(gitReceivePack)) {
            // Push request
            if (!repository.isBare) {
               logger.warn("Gitblit does not allow pushes to repositories with a working copy");
               return false;
            }
         }
      }
      // the log here has been moved into ReceiveHook to provide clients with
      // error messages
      return true;
   }