malware_collector.py
def pull_from_repo(self, git_path, git_url) -> Tuple[bool, str]:
        """
        perform a git pull on the configured directory. If we had to clone the repo, return true, since changes
        definitely occurred.

        :return: boolean,  whether there were any updates during the git pull
        """
        if not os.path.exists(git_path):
            os.mkdir(git_path)
            git.Repo.clone_from(git_url, git_path)
            self.repo = git.Repo(git_path)
            return True, ""
        else:
            try:
                self.repo = git.Repo(git_path)
            except git.exc.InvalidGitRepositoryError:
                git.Repo.clone_from(git_url, git_path)
                self.repo = git.Repo(git_path)
                return True, ""
        current = self.repo.head.commit
        self.repo.remotes.origin.pull()

        return current != self.repo.head.commit, current

        perform a git pull on the configured directory. If we had to clone the repo, return true, since changes
        definitely occurred.

        :return: boolean,  whether there were any updates during the git pull
        
perform a git pull on the configured directory. If we had to clone the repo, return true, since changes
definitely occurred.
perform a git pull on the configured directory . If we had to clone the repo return true since changes definitely occurred .
def pull_from_repo(self, git_path, git_url) -> Tuple[bool, str]:
        if not os.path.exists(git_path):
            os.mkdir(git_path)
            git.Repo.clone_from(git_url, git_path)
            self.repo = git.Repo(git_path)
            return True, ""
        else:
            try:
                self.repo = git.Repo(git_path)
            except git.exc.InvalidGitRepositoryError:
                git.Repo.clone_from(git_url, git_path)
                self.repo = git.Repo(git_path)
                return True, ""
        current = self.repo.head.commit
        self.repo.remotes.origin.pull()
        return current != self.repo.head.commit, current
def pull_from_repo ( self , git_path , git_url ) -> Tuple [ bool , str ] : if not os . path . exists ( git_path ) : os . mkdir ( git_path ) git . Repo . clone_from ( git_url , git_path ) self . repo = git . Repo ( git_path ) return True , "" else : try : self . repo = git . Repo ( git_path ) except git . exc . InvalidGitRepositoryError : git . Repo . clone_from ( git_url , git_path ) self . repo = git . Repo ( git_path ) return True , "" current = self . repo . head . commit self . repo . remotes . origin . pull ( ) return current != self . repo . head . commit , current
perform a git pull on the configured directory.
perform a git pull on the configured directory .
"""
        perform a git pull on the configured directory. If we had to clone the repo, return true, since changes
        definitely occurred.

        :return: boolean,  whether there were any updates during the git pull
        """
boolean,  whether there were any updates during the git pull
boolean whether there were any updates during the git pull
self
git_path
git_url