diff options
Diffstat (limited to 'template')
| -rwxr-xr-x[l---------] | template/hooks/post-checkout | 13 | ||||
| -rwxr-xr-x[l---------] | template/hooks/post-merge | 4 |
2 files changed, 15 insertions, 2 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 "$@" diff --git a/template/hooks/post-merge b/template/hooks/post-merge index acd988a5..f69e5466 120000..100755 --- a/template/hooks/post-merge +++ b/template/hooks/post-merge @@ -1 +1,3 @@ -../../libexec/oasis/perms-hook
\ No newline at end of file +#!/bin/sh + +exec ./libexec/oasis/perms-hook ORIG_HEAD HEAD |
