Skip to content
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

an unknown git error occurred; code=NotFound (-3) #184

Open
MaskRay opened this issue Jan 7, 2024 · 1 comment
Open

an unknown git error occurred; code=NotFound (-3) #184

MaskRay opened this issue Jan 7, 2024 · 1 comment

Comments

@MaskRay
Copy link

MaskRay commented Jan 7, 2024

From https://discourse.llvm.org/t/using-getcord-spr/76097 : spr diff updating an existing pull request may give this error.

% spr diff  # a PR is created in llvm/llvm-project and the commit message contains "Pull Request" now
% edit ...
% git commit --amend
% spr diff
  🛑  an unknown git error occurred; code=NotFound (-3)
% git gc --aggressive --prune=now # very slow
% spr diff
  🛑  an unknown git error occurred; code=NotFound (-3)

Unfortunately, I cannot reproduce this error on other repositories. I made a newer clone of [email protected]:llvm/llvm-project.git and succeeded with one pull request. Nevertheless, file the issue in case others encounter a similar error and hopefully contributors can help improve the error message? I am happy to run more commands on my local broken llvm-project repository.

@MaskRay
Copy link
Author

MaskRay commented Jan 8, 2024

I can now reproduce the error in my new llvm-project repository for other pull requests...

% spr amend
b128ce5 [RISCV] Restore DW_EH_PE_uleb128 call site encoding for .gcc_except_table
  🛑  an unknown git error occurred; code=NotFound (-3)
% spr diff
  🛑  an unknown git error occurred; code=NotFound (-3)

The lack of more detailed diagnostics is not helpful...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant