()
| 294 | |
| 295 | |
| 296 | def git_commit() -> str: |
| 297 | try: |
| 298 | cmd = ['git', 'rev-parse', 'HEAD'] |
| 299 | git_commit = ( |
| 300 | subprocess.Popen( |
| 301 | cmd, |
| 302 | stdout=subprocess.PIPE, |
| 303 | cwd=env_dict.get("PADDLE_SOURCE_DIR"), |
| 304 | ) |
| 305 | .communicate()[0] |
| 306 | .strip() |
| 307 | ) |
| 308 | except: |
| 309 | git_commit = 'Unknown' |
| 310 | git_commit = git_commit.decode('utf-8') |
| 311 | return str(git_commit) |
| 312 | |
| 313 | |
| 314 | def _get_version_detail(idx): |
no test coverage detected