How do we go from Repository version -> git SHA

#1

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”?

#2

I was able to do it with PackageManager:

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

2 Likes
#3

Use refSpec field
2559F4C5-BEAE-4ABD-BAA7-A4EDA60010ED

1 Like