Closed fherreazcue closed 1 year ago
This already works, you can use git subrepo -b <sha> <path>
and it will pull up to that SHA, but you can't do a git subrepo push
until you change the branch to an actual branch because your SHA doesn't have an appropriate REF.
This is a feature request.
The current behaviour of
git subrepo pull <subdir>
is to fetch the latest version of the subrepo. Could there be an option to fetch a specific sha, which is not the latest?As a use case, say a repo called "Big" has a subrepo called "shared", and the current
git log subrepo/shared/fetch
reads:The current behaviour only allows to get the latest version (with a bug), but not the "nice changes"... If something like
git subrepo pull <subdir> <sha>
is implemented, then the "Big" repo could simply do: