From 9ab23df65007a3d7b4262555767b847c4bbb386f Mon Sep 17 00:00:00 2001 From: Christine Wang Date: Tue, 28 Jan 2025 10:15:08 -0800 Subject: [PATCH] fix: branch_sync clone URL --- src/codegen/runner/utils/branch_sync.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/codegen/runner/utils/branch_sync.py b/src/codegen/runner/utils/branch_sync.py index 798621b87..d6d5930fb 100644 --- a/src/codegen/runner/utils/branch_sync.py +++ b/src/codegen/runner/utils/branch_sync.py @@ -2,7 +2,7 @@ from codegen.git.configs.constants import HIGHSIDE_REMOTE_NAME, LOWSIDE_REMOTE_NAME from codegen.git.repo_operator.remote_repo_operator import RemoteRepoOperator -from codegen.git.schemas.github import GithubScope, GithubType +from codegen.git.schemas.github import GithubType from codegen.git.utils.clone_url import get_authenticated_clone_url_for_repo_config @@ -11,7 +11,7 @@ def get_remote_for_github_type(op: RemoteRepoOperator, github_type: GithubType = return op.git_cli.remote(name="origin") remote_name = HIGHSIDE_REMOTE_NAME if github_type == GithubType.Github else LOWSIDE_REMOTE_NAME - remote_url = get_authenticated_clone_url_for_repo_config(repo=op.repo_config, github_type=github_type, github_scope=GithubScope.WRITE) + remote_url = get_authenticated_clone_url_for_repo_config(repo=op.repo_config, github_type=github_type) if remote_name in op.git_cli.remotes: remote = op.git_cli.remote(remote_name)