I have a script in a repository on DataBricks. The script should log the current git commit ID of the repository. How can that be implemented?
I tried various command, for example:
result = subprocess.run(['git', 'rev-parse', 'HEAD'], stdout=subprocess.PIPE, check=True)
but getting the following error:
Command '['git', 'rev-parse', 'HEAD']' returned non-zero exit status 128.
Any help with this will be appreciated 🙏