()
| 87 | |
| 88 | |
| 89 | def _get_current_git_commit(): |
| 90 | try: |
| 91 | result = subprocess.run(["git", "rev-parse", "HEAD"], capture_output=True, text=True, check=True) |
| 92 | return result.stdout.strip() |
| 93 | except subprocess.CalledProcessError as e: |
| 94 | print(f"Error running git command: {e.stderr.strip()}") |
| 95 | return None |
| 96 | except FileNotFoundError: |
| 97 | print("Did not find command: git") |
| 98 | return None |
| 99 | |
| 100 | |
| 101 | def check_verl(): |