You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Unfortunately rev-parse only works on a repo that has already been cloned locally. I guess we're using ls-remote here because the intention is to check whether the ref exists in the remote repository before it's cloned.
So far, I'm not sure git actually has a way of letting you check for the existence of a commit ID on a remote without first cloning it. So this may not be possible.
It would be useful if we could use a specific commit SHA to pin a dependency to specific commit in
whippet.json
, e.g.:However, this produces an error when running
whippet deps update
:This is because the git module uses
git ls-remote
:whippet/src/Git/Git.php
Line 343 in b3f6d4f
This won't produce any output for a SHA reference, so it fails. We should find a way of handling SHA references.
The text was updated successfully, but these errors were encountered: