Files
cn-rdms/scripts/install-git-hooks.ps1

10 lines
258 B
PowerShell

$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"