Skip to content

Conversation

90-008
Copy link
Member

@90-008 90-008 commented Oct 4, 2024

this fixes #1037

it seems like since 2.20 shallow works properly (?) and this causes the rev to not be found.

@90-008 90-008 force-pushed the git-fetcher-no-shallow branch from cc15e58 to 3779210 Compare January 8, 2025 05:48
@DavHau
Copy link
Member

DavHau commented Jun 15, 2025

I don't quite get it. In which situation would we not want to fetch shallow and why?

@90-008
Copy link
Member Author

90-008 commented Jun 15, 2025

it's because cargo doesn't specify the ref and only the revision iirc? and shallow only fetches the default branch so if the rev is on another branch it complains (we could just enable this for cargo only i just didn't think of that at the time)

@DavHau
Copy link
Member

DavHau commented Jun 16, 2025

I think shallow cloning only by revision should work fine. Could you check again?

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

Successfully merging this pull request may close these issues.

Cannot find Git revision in ref 'refs/heads/master' since Nix 2.20
2 participants