Merge "Merger: ensure_cloned() now looks for '.git'"

This commit is contained in:
Jenkins
2015-05-12 10:19:30 +00:00
committed by Gerrit Code Review
2 changed files with 80 additions and 1 deletions

View File

@@ -40,7 +40,7 @@ class Repo(object):
self.log.exception("Unable to initialize repo for %s" % remote)
def _ensure_cloned(self):
repo_is_cloned = os.path.exists(self.local_path)
repo_is_cloned = os.path.exists(os.path.join(self.local_path, '.git'))
if self._initialized and repo_is_cloned:
return
# If the repo does not exist, clone the repo.