How do we go from Repository version -> git SHA


Is there a way to get the git SHA of a repository from that repositories “version”. For example if my repository depends on c3base as such:

  "name": "customer",
  "version": "7.7.0",
  "description": "Customer C3 Application Packages",
  "dependencies": { "base" : "7.7.1+1" }

Is there a way to programmatically fetch the git SHA of base at version “7.7.1+1”?


I was able to do it with PackageManager:

c3Grid(PackageManager.bestRepositoryBuild(“base”, “7.7.1+1”))


Use refSpec field

1 Like