(ref = 'HEAD')
| 229 | return out.strip() |
| 230 | |
| 231 | def git_sha1(ref = 'HEAD'): |
| 232 | try: |
| 233 | return run.command(['git', 'rev-parse', ref]) |
| 234 | except Exception as e: |
| 235 | sys.exit("Unable to find git sha from ref: %s" % (ref)) |
| 236 | |
| 237 | def remove_readonly_retry(function, path, excinfo): |
| 238 | try: |