This is when trying to upload a change platform/borealis. I am posting it here because it mentions refs/heads/main, but the repo (at least my check out of it is) is still pointing to cros-internal/master.
Project list error on project chromiumos/repohooks: ManifestInvalidRevisionError: revision refs/heads/main in chromiumos/repohooks not found
ERROR: Traceback (most recent call last):
File "/usr/local/google/home/davidriley/chromiumos/master/.repo/repo/project.py", line 749, in _ExecuteHookViaImport
context['main'](**kwargs)
File "/usr/local/google/home/davidriley/chromiumos/master/src/repohooks/pre-upload.py", line 2385, in main
if _run_project_hooks(project, proj_dir=worktree):
File "/usr/local/google/home/davidriley/chromiumos/master/src/repohooks/pre-upload.py", line 2350, in _run_project_hooks
hook_error = hook(project, commit)
File "/usr/local/google/home/davidriley/chromiumos/master/src/repohooks/pre-upload.py", line 626, in _check_keywords
common_keywords = _read_terms_file(blocked_terms_file)
File "/usr/local/google/home/davidriley/chromiumos/master/src/repohooks/pre-upload.py", line 605, in _read_terms_file
for line in osutils.ReadFile(terms_file).splitlines():
File "/usr/local/google/home/davidriley/chromiumos/master/chromite/lib/osutils.py", line 293, in ReadFile
with open(path, 'rb') as f:
FileNotFoundError: [Errno 2] No such file or directory: 'blocked_terms.txt'
Failed to run main() for pre-upload hook; see traceback above.