mirror of
https://github.com/oasislinux/oasis.git
synced 2026-06-21 15:37:15 +02:00
06198df52d
This requires you to update your /.git hooks and /etc/rc.shutdown.
16 lines
329 B
Bash
Executable File
16 lines
329 B
Bash
Executable File
#!/bin/sh
|
|
|
|
old=$1
|
|
new=$2
|
|
flag=$3
|
|
|
|
# If HEAD didn't change or if this is just a file checkout, do a complete
|
|
# permissions fix.
|
|
if [ "$old" = 0000000000000000000000000000000000000000 ] || [ "$old" = "$new" ] || [ "$flag" = 0 ] ; then
|
|
set "$new"
|
|
else
|
|
set "$old" "$new"
|
|
fi
|
|
|
|
exec "$(git config oasis.root)"/libexec/applyperms "$@"
|