Task: Get the Current Git Hash in a Python Script
Task: Get the Current Git Hash in a Python Script: a task in Terminal-Lego-15k (Harbor dataset). Create a Python script that programmatically retrieves the current git commit hash of the repository it resides in and writes it to an output file. This simulates a common need to embed version…
The task
Create a Python script that programmatically retrieves the current git commit hash of the repository it resides in and writes it to an output file. This simulates a common need to embed version information (based on the git commit) into the output of a Python program.
Part of PrimeIntellect/Terminal-Lego-15k.