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

unable to find reference 'refs/heads/main' #439

Closed
aminya opened this issue Jul 27, 2022 · 1 comment · Fixed by #520
Closed

unable to find reference 'refs/heads/main' #439

aminya opened this issue Jul 27, 2022 · 1 comment · Fixed by #520
Labels
bug Something isn't working

Comments

@aminya
Copy link

aminya commented Jul 27, 2022

Describe the bug
I am trying to run cargo-deny, but it fails with a strange error:

> cargo-deny check --hide-inclusion-graph --show-stats

2022-07-27 09:46:30 [ERROR] unable to find reference 'refs/heads/main'

I have used the same repository on Windows without any issues, but I am running it under Fedora now.

The issue is fixed if I append --disable-fetch!

To Reproduce

  1. Run cargo-deny check --hide-inclusion-graph --show-stats

Expected behavior
It should not fail

Screenshots
N/A

Device:

  • OS: Fedora 36
  • Browser: Edge
  • Version 0.12.1

Additional context
Add any other context about the problem here.

@aminya aminya added the bug Something isn't working label Jul 27, 2022
@Jake-Shadle
Copy link
Member

I'm assuming this was a temporary network error, this code is not platform specific and I can't repro it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants