summaryrefslogtreecommitdiff
path: root/template/hooks/post-checkout
diff options
context:
space:
mode:
Diffstat (limited to 'template/hooks/post-checkout')
-rwxr-xr-x[l---------]template/hooks/post-checkout13
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 "$@"