We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d4d21b5 commit 6cec8d9Copy full SHA for 6cec8d9
lefthook.yml
@@ -48,10 +48,8 @@ post-merge:
48
commands:
49
check-pnpm-lock:
50
run: |
51
- PRE=1
52
- if git diff --quiet HEAD@{$PRE} -- pnpm-lock.yaml; then
53
- echo pnpm-lock.yaml 已变更,运行 pnpm install ...
54
- pnpm install
+ if git diff-tree -r --name-only --no-commit-id ORIG_HEAD HEAD | grep pnpm-lock.yaml; then
+ echo pnpm-lock.yaml 已变更,请运行 pnpm install 以保持依赖一致
55
fi
56
57
post-checkout:
@@ -61,7 +59,6 @@ post-checkout:
61
59
62
60
if [ {3} -eq 1 ]; then
63
if git diff --quiet {1} {2} -- pnpm-lock.yaml; then
64
65
66
67
0 commit comments