Skip to content

Commit 7f81b37

Browse files
fix: branch_sync clone URL (#154)
1 parent befc941 commit 7f81b37

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/codegen/runner/utils/branch_sync.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
from codegen.git.configs.constants import HIGHSIDE_REMOTE_NAME, LOWSIDE_REMOTE_NAME
44
from codegen.git.repo_operator.remote_repo_operator import RemoteRepoOperator
5-
from codegen.git.schemas.github import GithubScope, GithubType
5+
from codegen.git.schemas.github import GithubType
66
from codegen.git.utils.clone_url import get_authenticated_clone_url_for_repo_config
77

88

@@ -11,7 +11,7 @@ def get_remote_for_github_type(op: RemoteRepoOperator, github_type: GithubType =
1111
return op.git_cli.remote(name="origin")
1212

1313
remote_name = HIGHSIDE_REMOTE_NAME if github_type == GithubType.Github else LOWSIDE_REMOTE_NAME
14-
remote_url = get_authenticated_clone_url_for_repo_config(repo=op.repo_config, github_type=github_type, github_scope=GithubScope.WRITE)
14+
remote_url = get_authenticated_clone_url_for_repo_config(repo=op.repo_config, github_type=github_type)
1515

1616
if remote_name in op.git_cli.remotes:
1717
remote = op.git_cli.remote(remote_name)

0 commit comments

Comments
 (0)