def execute_commits(self, commits):
        """
        Check that HEAD commit has gpg signature
        """
        cmd = "git log HEAD^..HEAD --show-signature --format=%H | "
        cmd += "grep -q 'Signature made'"

        try:
            run_command(cmd, split=False, shell=True,
                        ignore_error=False, cwd=self.base_path)
            log.debug('Signature found in HEAD commit')
            return False
        except Exception as e:
            log.debug(str(e) % "Exception: %s")
            body = 'No gpg signature for tip of the branch.'
            self.problems.add(IssueComment(body))
dataset/ETHPy150Open markstory/lint-review/lintreview/tools/gpg.py/Gpg.execute_commits/swapped operands of `%`