*/\r
@Override\r
protected boolean isActionAllowed(RepositoryModel repository, String action) {\r
- if (action.equals(gitReceivePack)) {\r
- // Push request\r
- if (!repository.isBare) {\r
- logger.warn("Gitblit does not allow pushes to repositories with a working copy");\r
- return false;\r
+ if (!StringUtils.isEmpty(action)) {\r
+ if (action.equals(gitReceivePack)) {\r
+ // Push request\r
+ if (!repository.isBare) {\r
+ logger.warn("Gitblit does not allow pushes to repositories with a working copy");\r
+ return false;\r
+ }\r
}\r
}\r
return true;\r