Skip to content

fix(fetchers/git): dont fetch shallow by default - #1055

Open
90-008 wants to merge 1 commit into
mainfrom
git-fetcher-no-shallow
Open

fix(fetchers/git): dont fetch shallow by default#1055
90-008 wants to merge 1 commit into
mainfrom
git-fetcher-no-shallow

Conversation

@90-008

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

Copy link
Copy Markdown
Member

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

DavHau commented Jun 15, 2025

Copy link
Copy Markdown
Member

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

@90-008

90-008 commented Jun 15, 2025

Copy link
Copy Markdown
Member Author

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

DavHau commented Jun 16, 2025

Copy link
Copy Markdown
Member

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