Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Jul 4, 2023
1 parent 35e977d commit 022fb25
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions southwark/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -417,13 +417,13 @@ def clone(
target_config = r.get_config()

target_config.set(("remote", origin), "url", source.encode("UTF-8"))
target_config.set(("remote", origin), "fetch", f"+refs/heads/*:refs/remotes/{origin}/*".encode("UTF-8"))
target_config.set(("remote", origin), "fetch", f"+refs/heads/*:refs/remotes/{origin}/*".encode())
target_config.write_to_path()
fetch_result = fetch(
r,
origin,
errstream=errstream,
message=f"clone: from {source}".encode("UTF-8"),
message=f"clone: from {source}".encode(),
depth=depth,
**kwargs,
)
Expand Down
4 changes: 2 additions & 2 deletions southwark/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ def set_remote_ssh(config: ConfigFile, domain: str, username: str, repo: str, na
:param name: The name of the remote to set.
"""

config.set(("remote", name), "url", f"git@{domain}:{username}/{repo}.git".encode("UTF-8"))
config.set(("remote", name), "url", f"git@{domain}:{username}/{repo}.git".encode())


def set_remote_http(config: ConfigFile, domain: str, username: str, repo: str, name: str = "origin") -> None:
Expand All @@ -76,7 +76,7 @@ def set_remote_http(config: ConfigFile, domain: str, username: str, repo: str, n
:param name: The name of the remote to set.
"""

config.set(("remote", name), "url", f"https://{domain}/{username}/{repo}.git".encode("UTF-8"))
config.set(("remote", name), "url", f"https://{domain}/{username}/{repo}.git".encode())


set_remote_html = set_remote_http
Expand Down

0 comments on commit 022fb25

Please sign in to comment.