<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def init(self):
 """ Performs a clone or a fetch, depending on whether the repository has been previously cloned or not. """

        if os.path.isdir(self.path):
            self.fetch()
        else:
            self.clone()