git-commit

Getting the latest git commit id from URL on internal git using Python

Getting the latest git commit id from URL on internal git using Python Question: With the following function I am extracting the latest git commit id in a short form and write it into a text file. from os.path import exists from subprocess import Popen, PIPE def get_git_commit_id(txt_file: str) -> str: """ Gets the latest …

Total answers: 2