コード例 #1
0
 def _verify_hook(self, name):
     if os.path.exists(self._hook_path(name)):
         raise GitHookAlreadyExistsError(name)
コード例 #2
0
 def verify_hook(self, name):
     if (self.hooks_dir / name).exists():
         raise GitHookAlreadyExistsError(name)