Ustaw absolutna sciezke hooka
Co-authored-by: Copilot <[email protected]>
This commit is contained in:
@@ -8,7 +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"
|
||||
git -C $root config --local core.hooksPath "$hooks"
|
||||
Copy-Item $source $target -Force
|
||||
Remove-Item (Join-Path $hooks "post-push.cmd") -Force -ErrorAction SilentlyContinue
|
||||
|
||||
|
||||
Reference in New Issue
Block a user