Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitbcc0c27

Browse files
committed
Fix recent inconsistency, using :raise:, not :raises:
GitPython used :raise: consistently before, but I recentlyintroduced some occurrences of :raises: by accident. This changesthose to :raise:.
1 parentc8b6cf0 commitbcc0c27

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

‎git/index/fun.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ def run_commit_hook(name: str, index: "IndexFile", *args: str) -> None:
8888
:param args:
8989
Arguments passed to hook file.
9090
91-
:raises HookExecutionError:
91+
:raise HookExecutionError:
9292
"""
9393
hp=hook_path(name,index.repo.git_dir)
9494
ifnotos.access(hp,os.X_OK):

‎git/repo/base.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -784,7 +784,7 @@ def merge_base(self, *rev: TBD, **kwargs: Any) -> List[Union[Commit_ish, None]]:
784784
:class:`~git.objects.commit.Commit`, or is empty if no common merge base
785785
exists.
786786
787-
:raises ValueError:
787+
:raise ValueError:
788788
If fewer than two revisions are provided.
789789
"""
790790
iflen(rev)<2:

‎git/repo/fun.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ def touch(filename: str) -> str:
5959
defis_git_dir(d:"PathLike")->bool:
6060
"""This is taken from the git setup.c:is_git_directory function.
6161
62-
:raises WorkTreeRepositoryUnsupported:
62+
:raise WorkTreeRepositoryUnsupported:
6363
If it sees a worktree directory. It's quite hacky to do that here, but at least
6464
clearly indicates that we don't support it. There is the unlikely danger to
6565
throw if we see directories which just look like a worktree dir, but are none.

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2026 Movatter.jp