Issue #242 resolved
PermissionUtil and branches have bugs
- boolean isOwner = PermissionUtil.hasPermission(event.getRepository(), securityContextProvider, PermissionType.OWNER) if the user is admin and is not owner, it return true.
- changeset.getBranches() If user create a new branch at local and push to server. Server will get the branch name as master not the branch real name.