Chromium Code Reviews| Index: git_cache.py |
| diff --git a/git_cache.py b/git_cache.py |
| index ae8a5194878ac98f69bf0fcee1558fcec147837d..320d2de00b3ded9e4ca2ba5346cc041339a81e62 100755 |
| --- a/git_cache.py |
| +++ b/git_cache.py |
| @@ -406,7 +406,11 @@ class Mirror(object): |
| self._fetch(tempdir or self.mirror_path, verbose, depth) |
| finally: |
| if tempdir: |
| - os.rename(tempdir, self.mirror_path) |
| + try: |
| + os.rename(tempdir, self.mirror_path) |
| + except WindowsError: |
| + # This is somehow racy on Windows. |
|
iannucci
2014/07/19 01:00:52
this will rely on the unlock all functionality in
|
| + pass |
| if not ignore_lock: |
| lockfile.unlock() |