File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1212
1313
1414def _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
You can’t perform that action at this time.
0 commit comments