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