8 lines
338 B
PowerShell
8 lines
338 B
PowerShell
$ErrorActionPreference = 'Stop'
|
|
|
|
$repoRoot = (Resolve-Path (Join-Path $PSScriptRoot '..')).Path
|
|
|
|
git -C $repoRoot config core.hooksPath .githooks
|
|
|
|
Write-Host 'Configured git hooks path to .githooks' -ForegroundColor Green
|
|
Write-Host 'The pre-commit hook will run dotnet format whitespace on staged files under src.' -ForegroundColor Green |