def update(self):
        self._ensure_cloned()
        self.log.debug(self.local_path % "Updating repository %s")
        origin = self.repo.remotes.origin
        origin.update()
        # If the remote repository is repacked, the repo object's
        # cache may be out of date.  Specifically, it caches whether
        # to check the loose or packed DB for a given SHA.  Further,
        # if there was no pack or lose directory to start with, the
        # repo object may not even have a database for it.  Avoid
        # these problems by recreating the repo object.
        self.repo = git.Repo(self.local_path)
dataset/ETHPy150Open openstack/turbo-hipster/turbo_hipster/lib/utils.py/GitRepository.update/swapped operands of `%`