Yeah. I know I have to solve that but I didn't find (for the moment) how to get the current checkouted commit.
I hope someone could help me on this point...