| Index: gclient.py
 | 
| diff --git a/gclient.py b/gclient.py
 | 
| index 3467dcd55a38f81d2b64e10c47a4e70eb3eb5285..8c54d374320d2251dda917397362818b1fba5d62 100644
 | 
| --- a/gclient.py
 | 
| +++ b/gclient.py
 | 
| @@ -1136,7 +1136,8 @@ solutions = [
 | 
|                for path in path_list)
 | 
|  
 | 
|          # Use entry and not entry_fixed there.
 | 
| -        if ((not any(path.startswith(entry + '/') for path in entries)) and
 | 
| +        if (entry not in entries and
 | 
| +            (not any(path.startswith(entry + '/') for path in entries)) and
 | 
|              os.path.exists(e_dir)):
 | 
|            file_list = []
 | 
|            scm = gclient_scm.CreateSCM(prev_url, self.root_dir, entry_fixed)
 | 
| 
 |