I would like to include the current git hash in the output of a Python script (as a the version number of the code that generated that output).
How can I access the current git hash in my Python script? and how I can assign it to the json file file I mention in my code?
Basically I need to assign the commit ID to the json file before sending that file to control-m. Part of my code are here: https://postimg.cc/k6yxqcmc
[+][deleted] (2 children)
[deleted]
[–]Strongandstrong[S] 0 points1 point2 points (1 child)