Returns true if the path represents a git checkout.
(path)
| 240 | |
| 241 | |
| 242 | def is_git_checkout(path): |
| 243 | """ Returns true if the path represents a git checkout. """ |
| 244 | return os.path.exists(os.path.join(path, '.git')) |
| 245 | |
| 246 | |
| 247 | def exec_cmd(cmd, path): |