diff --git a/install-cloudflare-hook.ps1 b/install-cloudflare-hook.ps1 index d2056f2..6c805a1 100644 --- a/install-cloudflare-hook.ps1 +++ b/install-cloudflare-hook.ps1 @@ -8,6 +8,7 @@ if (-not (Test-Path $hooks)) { throw "Nie znaleziono folderu .git/hooks. Uruchom skrypt w katalogu repozytorium." } +git -C $root config --local core.hooksPath ".git/hooks" Copy-Item $source $target -Force Remove-Item (Join-Path $hooks "post-push.cmd") -Force -ErrorAction SilentlyContinue