Skip to content

Conversation

@klassiker
Copy link

The specified reference is resolved to a revDoc by resolveRef which uses a separate call to git ls-remote

The revDoc is then used to return the cloned commit revDoc.sha for all handlers except unresolved.

This unifies all strategies by always returning the output of git rev-parse --revs-only HEAD after checking out the source.

References

Related to npm/pacote#439

@klassiker klassiker requested a review from a team as a code owner December 12, 2025 22:12
@klassiker klassiker changed the title fix: return the actual rev we cloned for all cloning strategies Return the actual rev we cloned for all cloning strategies Dec 12, 2025
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.

1 participant