Когда я запускаю git hook в репо на сетевом ресурсе: какие двоичные файлы используются?

233
eckes

Смотрите заголовок. Мой репозиторий находится в сетевой папке. Когда я нажимаю новые обороты, post-udpateзапускается крюк. Крюк нуждается в Perl и прекрасно работает.

Но что perl.exeздесь используется? Тот, что на моей машине? Или Perl случайно установлен на удаленной машине и этот Perl выполняется?

1

1 ответ на вопрос

2
Daniel B

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.