def clone(self, repo_path, destination, branch=None):
logger.debug('<STR_LIT>' + repo_path)<EOL>if not destination.startswith(self.env_path):<EOL><INDENT>destination = unipath(self.env_path, destination)<EOL><DEDENT>if branch:<EOL><INDENT>return shell.run('<STR_LIT>', '<STR_LIT>', repo_path, '<STR_LIT>', branch,<EOL>'<STR_LIT>', '<STR_LIT>', destination)<EOL><DEDENT>return shell.run('<STR_LIT>', '<STR_LIT>', '<STR_LIT>', repo_path, destination)<EOL>
Clone a repository to a destination relative to envrionment root