def cherry_pick(self):
        """ git cherry-pick -x <commit_sha1> """
        cmd = ["git", "cherry-pick", "-x", self.commit_sha1]
        try:
            self.run_cmd(cmd)
        except subprocess.CalledProcessError as err:
            click.echo(f"Error cherry-pick {self.commit_sha1}.")
            click.echo(err.output)
            raise CherryPickException(f"Error cherry-pick {self.commit_sha1}.")
def cherry_pick ( self ) : cmd = [ "git" , "cherry-pick" , "-x" , self . commit_sha1 ] try : self . run_cmd ( cmd ) except subprocess . CalledProcessError as err : click . echo ( f"Error cherry-pick {self.commit_sha1}." ) click . echo ( err . output ) raise CherryPickException ( f"Error cherry-pick {self.commit_sha1}." )
git cherry-pick -x <commit_sha1>