Improve dev-facing error message in Git hook install script

This commit is contained in:
YoshiRulz 2024-06-21 23:54:47 +10:00
parent 62c1c11698
commit a329d076f0
No known key found for this signature in database
GPG Key ID: C4DE31C245353FB7
1 changed files with 1 additions and 1 deletions

View File

@ -12,7 +12,7 @@ if (Test-Path $targetDir -PathType Container) { # is Git repo
#TODO use symlinks on Linux
} elseif ((Get-FileHash $target).Hash -ne $shimChecksum) { # files differ
$head = Get-Content $target -TotalCount 3
echo "[$PSCommandFilename] found existing Git hook $hook, please resolve conflict manually"
echo "[$PSCommandFilename] found existing Git hook $hook, please resolve conflict manually (ignore if checking out older commits)"
exit 1
}
# else no-op