diff options
Diffstat (limited to 'git/objects/submodule/util.py')
-rw-r--r-- | git/objects/submodule/util.py | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/git/objects/submodule/util.py b/git/objects/submodule/util.py index 456ae34b..56ce1489 100644 --- a/git/objects/submodule/util.py +++ b/git/objects/submodule/util.py @@ -47,9 +47,7 @@ def mkhead(repo: "Repo", path: PathLike) -> "Head": return git.Head(repo, git.Head.to_full_path(path)) -def find_first_remote_branch( - remotes: Sequence["Remote"], branch_name: str -) -> "RemoteReference": +def find_first_remote_branch(remotes: Sequence["Remote"], branch_name: str) -> "RemoteReference": """Find the remote branch matching the name of the given branch or raise InvalidGitRepositoryError""" for remote in remotes: try: @@ -58,9 +56,7 @@ def find_first_remote_branch( continue # END exception handling # END for remote - raise InvalidGitRepositoryError( - "Didn't find remote branch '%r' in any of the given remotes" % branch_name - ) + raise InvalidGitRepositoryError("Didn't find remote branch '%r' in any of the given remotes" % branch_name) # } END utilities |