mirror of
https://github.com/angular/angular.git
synced 2026-09-14 13:54:52 +08:00
6080db1839
When errors occur in git hooks, we can safely supress them as they are validated on CI. This is primarily coming up as an issue related to needing to reinstall node_modules PR Close #42484
12 lines
255 B
Bash
Executable File
12 lines
255 B
Bash
Executable File
#!/bin/sh
|
|
. "$(dirname $0)/_/husky.sh"
|
|
|
|
set +e
|
|
|
|
yarn -s ng-dev commit-message pre-commit-validate --file $1 2>/dev/null
|
|
if [ $? -ne 0 ]; then
|
|
echo "WARNING: failed to run commit message validation (ng-dev commit-mesage pre-commit-validate)"
|
|
fi
|
|
|
|
exit 0;
|