Improve dev-facing error message in Git hook install script
This commit is contained in:
parent
62c1c11698
commit
a329d076f0
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue