Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 025fe17 commit 473fc3aCopy full SHA for 473fc3a
git/index/fun.py
@@ -72,7 +72,7 @@ def hook_path(name: str, git_dir: PathLike) -> str:
72
return osp.join(git_dir, 'hooks', name)
73
74
75
-def run_commit_hook(name: str, index: IndexFile, *args: str) -> None:
+def run_commit_hook(name: str, index: 'IndexFile', *args: str) -> None:
76
"""Run the commit hook of the given name. Silently ignores hooks that do not exist.
77
:param name: name of hook, like 'pre-commit'
78
:param index: IndexFile instance
0 commit comments