Skip to content

Commit 0135bc0

Browse files
committed
fix: avoid upload changes
1 parent c651559 commit 0135bc0

1 file changed

Lines changed: 2 additions & 5 deletions

File tree

kernels/src/kernels/cli/upload.py

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

1313

1414
def _branch_exists(api, repo_id, branch):
15-
refs = api.list_repo_refs(repo_id=repo_id, repo_type="kernel")
15+
refs = api.list_repo_refs(repo_id=repo_id)
1616
return any(ref.name == branch for ref in refs.branches)
1717

1818

@@ -37,9 +37,7 @@ def _upload_build_dir(
3737
delete_prefixes = ("build/",) if is_new_branch else variant_prefixes
3838
operations: list[CommitOperationAdd | CommitOperationDelete] = [
3939
CommitOperationDelete(path_in_repo=repo_file)
40-
for repo_file in sorted(
41-
api.list_repo_files(repo_id=repo_id, revision=revision, repo_type="kernel")
42-
)
40+
for repo_file in sorted(api.list_repo_files(repo_id=repo_id, revision=revision))
4341
if repo_file.startswith(delete_prefixes) and repo_file not in repo_paths
4442
]
4543
operations.extend(
@@ -70,7 +68,6 @@ def _upload_build_dir(
7068
repo_id=repo_id,
7169
operations=list(chunk),
7270
revision=revision,
73-
repo_type="kernel",
7471
commit_message=commit_message,
7572
)
7673

0 commit comments

Comments
 (0)