Git Server Hooks - Are they executed locally on the client/clone machine?

后端 未结 3 415
时光取名叫无心
时光取名叫无心 2021-01-21 17:58

Setup:

I have master repo on Windows machine and a clone on another windows machine. Inside my update hook, I have added ipconfig

3条回答
  •  灰色年华
    2021-01-21 18:59

    There's a post on superuser which talks about When I run a Git hook in a repo on a network share which binaries are used:

    "If it’s a regular (SMB/CIFS) network share, it’s executed on the client.

    If you use Git via SSH or HTTPS, Git (possibly an alternative implementation) is running on the remote side and executes hooks.

    More simplified: If you have a file path set as the remote, it’s executed locally, even when it’s actually SSHFS or whatnot. Otherwise, it’s executed remotely."

提交回复
热议问题