• Jacob Vosmaer's avatar
    Stop 'git push' over HTTP early · b8f754dd
    Jacob Vosmaer authored
    Before this change we always let users push Git data over HTTP before
    deciding whether to accept to push. This was different from pushing
    over SSH where we terminate a 'git push' early if we already know the
    user is not allowed to push.
    
    This change let Git over HTTP follow the same behavior as Git over
    SSH. We also distinguish between HTTP 404 and 403 responses when
    denying Git requests, depending on whether the user is allowed to know
    the project exists.
    b8f754dd
git_access.rb 3.63 KB