logo

oasis

Own branch of Oasis Linux (upstream: <https://git.sr.ht/~mcf/oasis/>) git clone https://anongit.hacktivis.me/git/oasis.git

post-checkout (329B)


  1. #!/bin/sh
  2. old=$1
  3. new=$2
  4. flag=$3
  5. # If HEAD didn't change or if this is just a file checkout, do a complete
  6. # permissions fix.
  7. if [ "$old" = 0000000000000000000000000000000000000000 ] || [ "$old" = "$new" ] || [ "$flag" = 0 ] ; then
  8. set "$new"
  9. else
  10. set "$old" "$new"
  11. fi
  12. exec "$(git config oasis.root)"/libexec/applyperms "$@"