Is the given directory version-controlled with git?
(dir: str)
| 8 | |
| 9 | |
| 10 | def is_git_repo(dir: str) -> bool: |
| 11 | """Is the given directory version-controlled with git?""" |
| 12 | return os.path.exists(os.path.join(dir, ".git")) |
| 13 | |
| 14 | |
| 15 | def have_git() -> bool: |