(dir)
| 18 | |
| 19 | |
| 20 | def get_last_commit(dir): |
| 21 | rev_file_name = path.join(dir, "last_modified.txt") |
| 22 | last_commit = None |
| 23 | try: |
| 24 | with open(rev_file_name) as f: |
| 25 | last_commit = next(f) |
| 26 | except FileNotFoundError as f: |
| 27 | pass |
| 28 | return last_commit |
| 29 | |
| 30 | |
| 31 | def run_command_or_exit_with_error(command: List[str], **kwargs): |