code: def get_git_info(path=".", abort_dirty=True):
      info = {}
      if not is_git(path):
          return None
  
      if abort_dirty and not is_clean(path):
          return None
  
      info["url"] = get_repo_url(path)
      info["commit"] = get_commit(path)
      return info
  
file_path: studio/studio/git_util.py
imports: import re
  import subprocess
  import os
label_desc: Use image node_id 1 for calling a global function with example usage: get_git_info(path, abort_dirty) and returns: info, None, None