I have studied a lot of Git hooks, both simple ones (like the ones, that 
can be found in the "hooks" directory), as well as more complex ones (like 
those running checkstyle), but one question remains unanswered:

Assuming, my git hooks directory is "<PROJECT_DIR/.git/hooks>": Can I 
simply use "../../relative_path_to_file" to access a file in my project 
directory? (The intention being to validate the projects contents in a 
pre-commit, or pre-push hook.)



You received this message because you are subscribed to the Google Groups "Git 
for human beings" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to git-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to