Skip to content

fix: branch_sync clone URL #154

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jan 28, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/codegen/runner/utils/branch_sync.py
Original file line number Diff line number Diff line change
Expand Up @@ -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


Expand All @@ -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)
Expand Down