This is a possible workaround:

cat > ./.git/hooks/post-checkout <<-EOF
  #!/bin/bash
  chmod <files>
  true
EOF
cat > ./.git/hooks/post-rewrite <<-EOF
  #!/bin/bash
  cat >/dev/null
  chmod <files>
  true
EOF
chmod u+x ./.git/hooks/post-{checkout,rewrite}


-- 
Daniel Fanjul Alcutén
https://github.com/daniel-fanjul-alcuten

-- 
You received this message because you are subscribed to the Google Groups "Git 
for human beings" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to git-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to