git module and sha value of HEAD

Hello,

I am trying to capture the current sha of a git clone just after doing a git clone on HEAD with the git: module.

Do you know if this is possible and if yes, how it can be done ?

Thank you

Register the variable with “register”

Assume registering as “foo”, you will be able to access both foo.before and foo.after