def git_clone(self, git_path):

        tempdir = self.create_session()
        if tempdir is not None:
            os.system("git clone %s %s" % (git_path, tempdir))
        return tempdir
Create a fake session and clone git repo
dataset/ETHPy150Open CiscoDevNet/yang-explorer/server/explorer/management/commands/bulkupload.py/Command.git_clone