Skip to content
  • Zeger-Jan van de Weg's avatar
    02498ece
    Make git hooks self healing · 02498ece
    Zeger-Jan van de Weg authored
    If the git hooks aren't symlinked properly, GitLab authentication and
    authorization is skipped completely. So on most Git operations, if these
    hooks are missing this commit will try to repair them when triggering an
    upload-pack, or receive-pack git action.
    
    This change also allows the Gitaly team to change the hooks in following
    releases to any new ones. And allowing for absorbing the gitlab-shell
    hooks into this project.
    
    Previously attempted in:
    gitlab-org/gitaly@87198d32, which ran into
    race conditions. This approach does not
    
    Part of gitlab-org/gitaly#1226
    02498ece
    Make git hooks self healing
    Zeger-Jan van de Weg authored
    If the git hooks aren't symlinked properly, GitLab authentication and
    authorization is skipped completely. So on most Git operations, if these
    hooks are missing this commit will try to repair them when triggering an
    upload-pack, or receive-pack git action.
    
    This change also allows the Gitaly team to change the hooks in following
    releases to any new ones. And allowing for absorbing the gitlab-shell
    hooks into this project.
    
    Previously attempted in:
    gitlab-org/gitaly@87198d32, which ran into
    race conditions. This approach does not
    
    Part of gitlab-org/gitaly#1226
Loading