diff options
| author | Michael Forney <mforney@mforney.org> | 2016-06-18 13:57:58 -0700 |
|---|---|---|
| committer | Michael Forney <mforney@mforney.org> | 2016-06-18 13:57:58 -0700 |
| commit | 714a5cbd33dbc46bed1a02dedaa8d09bf5cc6e8c (patch) | |
| tree | d84324a277a22b04e16cd2f28cb2a7d172bdf758 /template/hooks/post-checkout | |
| parent | 192b6af9f5e314c46b7e906b63991d7e3b6a7b83 (diff) | |
Invoke perms-hook using shell script wrappers
Diffstat (limited to 'template/hooks/post-checkout')
| -rwxr-xr-x[l---------] | template/hooks/post-checkout | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/template/hooks/post-checkout b/template/hooks/post-checkout index acd988a5..2a619e25 120000..100755 --- a/template/hooks/post-checkout +++ b/template/hooks/post-checkout @@ -1 +1,12 @@ -../../libexec/oasis/perms-hook
\ No newline at end of file +#!/bin/sh + +old=$1 +new=$2 + +if [ "$old" = 0000000000000000000000000000000000000000 ] ; then + set "$new" +else + set "$old" "$new" +fi + +exec ./libexec/oasis/perms-hook "$@" |
