summaryrefslogtreecommitdiff
path: root/git/index/fun.py
diff options
context:
space:
mode:
authorYobmod <yobmod@gmail.com>2021-05-17 13:15:48 +0100
committerYobmod <yobmod@gmail.com>2021-05-17 13:15:48 +0100
commit473fc3a348cd09b4ffca319daff32464d10d8ef9 (patch)
tree73a87f180b9a7a8e51ac0f100fd5347ad22a6f34 /git/index/fun.py
parent025fe17da390c410e5bae4d6db0832afbfa26442 (diff)
downloadgitpython-473fc3a348cd09b4ffca319daff32464d10d8ef9.tar.gz
forward reference for IndexFile
Diffstat (limited to 'git/index/fun.py')
-rw-r--r--git/index/fun.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/git/index/fun.py b/git/index/fun.py
index 95dc3d56..d9fe4108 100644
--- a/git/index/fun.py
+++ b/git/index/fun.py
@@ -72,7 +72,7 @@ def hook_path(name: str, git_dir: PathLike) -> str:
return osp.join(git_dir, 'hooks', name)
-def run_commit_hook(name: str, index: IndexFile, *args: str) -> None:
+def run_commit_hook(name: str, index: 'IndexFile', *args: str) -> None:
"""Run the commit hook of the given name. Silently ignores hooks that do not exist.
:param name: name of hook, like 'pre-commit'
:param index: IndexFile instance