tzk/git.py

8 lines
224 B
Python
Raw Normal View History

import subprocess
from typing import Sequence
def exec(*args: Sequence[str]):
return subprocess.call(["git", *args])
2021-08-25 20:38:26 +00:00
def read(*args: Sequence[str]):
return subprocess.check_output(["git", *args], text=True).strip()