Utrwal lokalna sciezke hookow Git

Co-authored-by: Copilot <[email protected]>
This commit is contained in:
2026-09-18 19:36:59 +02:00
co-authored by Copilot
parent 249392de03
commit bb180c7cfd
+1
View File
@@ -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