Index: gclient_scm.py |
diff --git a/gclient_scm.py b/gclient_scm.py |
index 89647ac0eb6f0c10cc6569d0804aba7605f0aa5f..b5a09a2249c9086ffd324e3db4a658859920b6db 100644 |
--- a/gclient_scm.py |
+++ b/gclient_scm.py |
@@ -352,7 +352,8 @@ class GitWrapper(SCMWrapper): |
(os.path.isdir(self.checkout_path) and |
not os.path.exists(os.path.join(self.checkout_path, '.git')))): |
if (os.path.isdir(self.checkout_path) and |
- not os.path.exists(os.path.join(self.checkout_path, '.git'))): |
+ not os.path.exists(os.path.join(self.checkout_path, '.git')) and |
+ os.listdir(self.checkout_path)): |
# This is a little hack to work around checkouts which are created |
# using "gclient config --name ." |
if not self.relpath == '.': |