diff options
| author | Michael Forney <mforney@mforney.org> | 2016-06-25 22:54:52 -0700 |
|---|---|---|
| committer | Michael Forney <mforney@mforney.org> | 2016-06-25 22:54:52 -0700 |
| commit | adec4a1094dc5cb1a4c9a269532eddc17112e273 (patch) | |
| tree | fe5feb412a2fc2674fe59bcb88bb6c6b208908d1 /template | |
| parent | 4eb283ce9e6b5377a7ce41d834fdc8e9c49e7489 (diff) | |
Fix perms-hook invocation in /etc
Diffstat (limited to 'template')
| -rw-r--r-- | template/config | 2 | ||||
| -rwxr-xr-x | template/hooks/post-checkout | 2 | ||||
| -rwxr-xr-x | template/hooks/post-merge | 2 |
3 files changed, 4 insertions, 2 deletions
diff --git a/template/config b/template/config index 0a010eff..a21d44a8 100644 --- a/template/config +++ b/template/config @@ -1,3 +1,5 @@ [core] sharedRepository = 0600 sparseCheckout = true +[oasis] + root = . diff --git a/template/hooks/post-checkout b/template/hooks/post-checkout index 2a619e25..c7ab2433 100755 --- a/template/hooks/post-checkout +++ b/template/hooks/post-checkout @@ -9,4 +9,4 @@ else set "$old" "$new" fi -exec ./libexec/oasis/perms-hook "$@" +exec "$(git config oasis.root)"/libexec/oasis/perms-hook "$@" diff --git a/template/hooks/post-merge b/template/hooks/post-merge index f69e5466..f8c7404f 100755 --- a/template/hooks/post-merge +++ b/template/hooks/post-merge @@ -1,3 +1,3 @@ #!/bin/sh -exec ./libexec/oasis/perms-hook ORIG_HEAD HEAD +exec "$(git config oasis.root)"/libexec/oasis/perms-hook ORIG_HEAD HEAD |
