File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -111,7 +111,7 @@ def update_repository(repository: Dict, recreate: bool = False) -> int:
111
111
if recreate :
112
112
# Delete any existing branch and create again from master
113
113
recreate_branch (repo )
114
- elif f"refs/remotes/origin/{ BRANCH_NAME } " .encode ("UTF-8" ) in dict (repo .refs ):
114
+ elif f"refs/remotes/origin/{ BRANCH_NAME } " .encode () in dict (repo .refs ):
115
115
checkout_branch (repo )
116
116
else :
117
117
# Switch to new branch
@@ -266,7 +266,7 @@ def create_branch(repo: Union[dulwich.repo.Repo, PathLike]) -> None:
266
266
267
267
with open_repo_closing (repo ) as repo : # pylint: disable=redefined-argument-from-local
268
268
dulwich .porcelain .update_head (repo , b"HEAD" , new_branch = BRANCH_NAME .encode ("UTF-8" ))
269
- repo .refs [f"refs/heads/{ BRANCH_NAME } " .encode ("UTF-8" )] = repo .refs [b'refs/heads/master' ]
269
+ repo .refs [f"refs/heads/{ BRANCH_NAME } " .encode ()] = repo .refs [b'refs/heads/master' ]
270
270
271
271
272
272
def clone (url : str , dest : PathLike ) -> Repo :
You can’t perform that action at this time.
0 commit comments