I failed to use the --setup-pre-push-hook flag with git fork
$ rm -rf jdk; git fork --setup-pre-push-hook https://github.com/openjdk/jdk
=>
...
Adding remote 'upstream' for https://github.com/openjdk/jdk...done
error: unexpected input: true
usage: git jcheck [options]
...
$ rm -rf jdk; git fork --setup-pre-push-hook https://github.com/openjdk/jdk
=>
...
Adding remote 'upstream' for https://github.com/openjdk/jdk...done
error: unexpected input: true
usage: git jcheck [options]
...