X-Git-Url: https://asedeno.scripts.mit.edu/gitweb/?a=blobdiff_plain;f=contrib%2Fhooks%2Fsetgitperms.perl;h=dab7c8e3a1829b31f2b10eafe8becf0f067b5a05;hb=fae09a8084c9b51632726523b477a78dd28d7d7e;hp=5e3b89def27e28b0ef0a7b4055e7a12494973f87;hpb=6b4790db2432c0bc45586245fecaf04581499f73;p=git.git diff --git a/contrib/hooks/setgitperms.perl b/contrib/hooks/setgitperms.perl index 5e3b89def..dab7c8e3a 100644 --- a/contrib/hooks/setgitperms.perl +++ b/contrib/hooks/setgitperms.perl @@ -8,13 +8,14 @@ # To save permissions/ownership data, place this script in your .git/hooks # directory and enable a `pre-commit` hook with the following lines: # #!/bin/sh -# . git-sh-setup +# SUBDIRECTORY_OK=1 . git-sh-setup # $GIT_DIR/hooks/setgitperms.perl -r # # To restore permissions/ownership data, place this script in your .git/hooks -# directory and enable a `post-merge` hook with the following lines: +# directory and enable a `post-merge` and `post-checkout` hook with the +# following lines: # #!/bin/sh -# . git-sh-setup +# SUBDIRECTORY_OK=1 . git-sh-setup # $GIT_DIR/hooks/setgitperms.perl -w # use strict;