@@ -0,0 +1,903 @@
+package hudson.plugins.git;%0A%0Aimport hudson.Extension;%0Aimport hudson.security.csrf.CrumbExclusion;%0A%0Aimport javax.servlet.FilterChain;%0Aimport javax.servlet.ServletException;%0Aimport javax.servlet.http.HttpServletRequest;%0Aimport javax.servlet.http.HttpServletResponse;%0Aimport java.io.IOException;%0A%0A/**%0A * Make POST to /git/notifyCommit work with CSRF protection on.%0A */%0A@Extension%0Apublic class GitStatusCrumbExclusion extends CrumbExclusion %7B%0A%0A    @Override%0A    public boolean process(HttpServletRequest req, HttpServletResponse resp, FilterChain chain)%0A            throws IOException, ServletException %7B%0A        String pathInfo = req.getPathInfo();%0A        if (pathInfo != null && pathInfo.equals(getExclusionPath())) %7B%0A            chain.doFilter(req, resp);%0A            return true;%0A        %7D%0A        return false;%0A    %7D%0A%0A    public String getExclusionPath() %7B%0A        return %22/git/notifyCommit%22;%0A    %7D%0A%7D%0A

Fix POST to /git/notifyCommit with CSRF protection on