diff options
author | Sebastian Thiel <sebastian.thiel@icloud.com> | 2022-05-18 08:01:38 +0800 |
---|---|---|
committer | Sebastian Thiel <sebastian.thiel@icloud.com> | 2022-05-18 08:01:38 +0800 |
commit | e530544546b2a4e5f00e8d9458bf1b895573ec41 (patch) | |
tree | 9b957bd812fe98664d3f1f75615dda8242663097 /git/objects/submodule/util.py | |
parent | f78fc42b90711c81e06699d1ebdbe69e6648b949 (diff) | |
download | gitpython-e530544546b2a4e5f00e8d9458bf1b895573ec41.tar.gz |
reformat according to 'black' configuration file.
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 |