I am using a script that runs as post-checkout
and post-merge
hook to ensure some permissions on the working copy files.
Neither of these hooks is run on git reset
, so after a git reset --hard
the permissions are lost because apparently the files were created freshly.
Is there a hook that runs on git reset
that I can use to run my permissions script?
No, sorry. :(
This is the full list of hooks from the git documentation, and there's no mention of a reset hook. : https://www.kernel.org/pub/software/scm/git/docs/githooks.html
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With