Skip to content

Commit be9fd81

Browse files
committed
pre-push: if not up to date, provide a copy-pasta stanza to update it
Signed-off-by: Johannes Schindelin <[email protected]>
1 parent 926836b commit be9fd81

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

pre-push.hook

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,9 @@ LF='
1313
'
1414

1515
git diff --no-index --quiet pre-push.hook "$(git rev-parse --git-path hooks/pre-push)" ||
16-
die 'The `pre-push` hook is not up to date with `pre-push.hook`'
16+
die 'The `pre-push` hook is not up to date with `pre-push.hook`. Please update:
17+
18+
cp pre-push.hook .git/hooks/pre-push'
1719

1820
# Verify that any tagged version is reflected in its `package.json`
1921
for tag in $(git for-each-ref --format='%(refname:short)' --points-at=HEAD 'refs/tags/v[0-9]*')

0 commit comments

Comments
 (0)