[sdk] Fix sso -> https for remote branch lookup
Bug: 39285
Change-Id: I39b0421025d39655cf6e6f8ed0b9cf2d800e3beb
diff --git a/recipes/sdk.py b/recipes/sdk.py
index 2ef005d..25ae179 100644
--- a/recipes/sdk.py
+++ b/recipes/sdk.py
@@ -20,6 +20,7 @@
'fuchsia/macos_sdk',
'fuchsia/release',
'fuchsia/tar',
+ 'fuchsia/sso',
'fuchsia/upload',
'recipe_engine/buildbucket',
'recipe_engine/context',
@@ -229,9 +230,10 @@
try:
release_version = api.release.ref_to_release_version(
ref=revision, repo_path=integration_repo)
+ branch_head = api.git.get_remote_branch_head(
+ api.sso.sso_to_https(remote), publish_branch)
if release_version in api.release.get_release_versions(
- ref=api.git.get_remote_branch_head(remote, publish_branch),
- repo_path=integration_repo):
+ ref=branch_head, repo_path=integration_repo):
publish = True
# If the incoming revision was not a release version, continue
# without publishing.