Index: gclient_scm.py |
diff --git a/gclient_scm.py b/gclient_scm.py |
index bb719ebf7086de0a0f0721d7bb9948939a1eedef..ec9c8d80929e1f2bbb2bd49c8fd932f9b8c98582 100644 |
--- a/gclient_scm.py |
+++ b/gclient_scm.py |
@@ -873,8 +873,8 @@ class GitWrapper(SCMWrapper): |
print(str(e)) |
print('Retrying...') |
gclient_utils.safe_makedirs(self.checkout_path) |
- os.rename(os.path.join(tmp_dir, '.git'), |
- os.path.join(self.checkout_path, '.git')) |
+ gclient_utils.SafeRename(os.path.join(tmp_dir, '.git'), |
+ os.path.join(self.checkout_path, '.git')) |
finally: |
if os.listdir(tmp_dir): |
print('\n_____ removing non-empty tmp dir %s' % tmp_dir) |