pub fn create_hook(r: &Repository, hook: &str, hook_script: &[u8]) -> PathBuf
helper method to create git hooks programmatically (heavy used in unittests)
Panics if hook could not be created