$ErrorActionPreference = 'Stop'

$repoRoot = Resolve-Path (Join-Path $PSScriptRoot '..')
$hooksPath = Join-Path $repoRoot 'githooks'

git -C $repoRoot config core.hooksPath $hooksPath

Write-Host "Git hooks installed."
Write-Host "core.hooksPath=$hooksPath"
