code: def get_last_commit(git_path=None):
      
      if git_path is None: git_path = GIT_PATH
      line = get_last_commit_line(git_path)
      revision_id = line.split()[1]
      return revision_id
docs: Get the HEAD commit SHA1 of repository in current dir.