# Use a relative symlink if the hooks live in the source directory,
# and the hooks directory is not a symlink to an absolute path.
# Use a relative symlink if the hooks live in the source directory,
# and the hooks directory is not a symlink to an absolute path.
script_path = os.path.relpath(
os.path.realpath(script.get_abspath()),
os.path.realpath(hook.Dir(".").get_abspath()))
script_path = os.path.relpath(
os.path.realpath(script.get_abspath()),
os.path.realpath(hook.Dir(".").get_abspath()))
- git_style_script = env.root.Dir("util").File("git-pre-commit.py")
- git_msg_script = env.root.Dir("ext").File("git-commit-msg")
+ git_style_script = env.Dir("#util").File("git-pre-commit.py")
+ git_msg_script = env.Dir("#ext").File("git-commit-msg")
hook_install("pre-commit", git_style_script)
hook_install("commit-msg", git_msg_script)
hook_install("pre-commit", git_style_script)
hook_install("commit-msg", git_msg_script)