(git_root)
| 62 | |
| 63 | |
| 64 | def short_sha(git_root): |
| 65 | r = subprocess.run( |
| 66 | ["git", "rev-parse", "--short", "HEAD"], |
| 67 | cwd=git_root, capture_output=True, text=True, check=True, |
| 68 | ) |
| 69 | return r.stdout.strip() |
| 70 | |
| 71 | |
| 72 | def has_staged_changes(git_root, paths=None): |
no test coverage detected
searching dependent graphs…