Index: gclient_scm.py |
=================================================================== |
--- gclient_scm.py (revision 126259) |
+++ gclient_scm.py (working copy) |
@@ -219,7 +219,9 @@ |
# hash is also a tag, only make a distinction at checkout |
rev_type = "hash" |
- if not os.path.exists(self.checkout_path): |
+ if not os.path.exists(self.checkout_path) or ( |
+ os.path.isdir(self.checkout_path) and \ |
M-A Ruel
2012/03/12 23:54:59
remove \, not necessary.
szager
2012/03/13 00:00:12
Done.
|
+ not os.listdir(self.checkout_path)): |
gclient_utils.safe_makedirs(os.path.dirname(self.checkout_path)) |
self._Clone(revision, url, options) |
files = self._Capture(['ls-files']).splitlines() |