Ejemplo n.º 1
0
 def clean(self):
     """Discard changes in clowder repo"""
     if self.is_dirty():
         print(' - Discard current changes')
         git_reset_head(self.clowder_path)
     else:
         print(' - No changes to discard')
Ejemplo n.º 2
0
 def groom(self):
     """Discard changes for project"""
     if self.is_dirty():
         self._print_status()
         print(' - Discarding current changes')
         git_reset_head(self.full_path())