Buckets:
AnonymousSpottedToad/candidate_bucket / codebase /python /rubelw_OSSS /src /OSSS /ai /utils /versioning.py
| import subprocess | |
| def get_git_version(default: str = "unknown") -> str: | |
| try: | |
| return ( | |
| subprocess.check_output( | |
| ["git", "describe", "--tags", "--dirty"], stderr=subprocess.DEVNULL | |
| ) | |
| .decode("utf-8") | |
| .strip() | |
| ) | |
| except Exception: | |
| return default |
Xet Storage Details
- Size:
- 339 Bytes
- Xet hash:
- a1464a8e8b6a6f3f131a245425f2a82de0528a77603de2328818bb5cf0c5dd16
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.