code: def _get_parent(self):
          
          _dir = os.path.dirname(self.path)
          if is_repo(_dir):
              return Local(_dir)
          else:
              return None
docs: :return: Remote origin as Proxy instance