def save(self, *args, **kwargs):
        super(Project, self).save(*args, **kwargs)
        path = self.get_path()
        if not os.path.isdir(path):
            os.system('cd %s; git clone %s %s' % (settings.PROJECT_ROOT, self.git, self.slug))
        
        self.update()
dataset/ETHPy150Open kylef-archive/django-projects/projects/models.py/Project.save/original