public function process(Payload $payload) {
		$directory = $this->getDirectorySettingOrFail();
		$branch = $this->getSettingValue(self::OPTION_BRANCH, $payload->getRepository()->getMasterBranch());
		$url = $this->getSettingValue(self::OPTION_REPOSITORY, $payload->getRepository()->getUrl());
		$git = $this->resolveGitCommand();
		$command = array(
			'cd', escapeshellarg($directory), '&&',
			$git, self::COMMAND, escapeshellarg($url), escapeshellarg($branch)
		);
		if (TRUE === (boolean) $this->getSettingValue(self::OPTION_REBASE, FALSE)) {
			$command[] = self::COMMAND_REBASE;
		}
		$output = $this->executeGitCommand($command);
		$payload->getResponse()->addOutputFromPlugin($this, $output);
	}
public function process(Payload $payload) {
		$directory = $this->getDirectorySettingOrFail();
		$branch = $this->getSettingValue(self::OPTION_BRANCH, $payload->getRepository()->getMasterBranch());
		$url = $this->getSettingValue(self::OPTION_REPOSITORY, $payload->getRepository()->getUrl());
		$git = $this->resolveGitCommand();
		$command = array(
			'cd', escapeshellarg($directory), '&&',
			$git, self::COMMAND, escapeshellarg($url), escapeshellarg($branch)
		);
		if (TRUE === (boolean) $this->getSettingValue(self::OPTION_REBASE, FALSE)) {
			$command[] = self::COMMAND_REBASE;
		}
		$output = $this->executeGitCommand($command);
		$payload->getResponse()->addOutputFromPlugin($this, $output);
	}
public function process ( Payload $ payload ) { $ directory = $ this -> getDirectorySettingOrFail ( ) ; $ branch = $ this -> getSettingValue ( self :: OPTION_BRANCH , $ payload -> getRepository ( ) -> getMasterBranch ( ) ) ; $ url = $ this -> getSettingValue ( self :: OPTION_REPOSITORY , $ payload -> getRepository ( ) -> getUrl ( ) ) ; $ git = $ this -> resolveGitCommand ( ) ; $ command = array ( 'cd' , escapeshellarg ( $ directory ) , '&&' , $ git , self :: COMMAND , escapeshellarg ( $ url ) , escapeshellarg ( $ branch ) ) ; if ( TRUE === ( boolean ) $ this -> getSettingValue ( self :: OPTION_REBASE , FALSE ) ) { $ command [ ] = self :: COMMAND_REBASE ; } $ output = $ this -> executeGitCommand ( $ command ) ; $ payload -> getResponse ( ) -> addOutputFromPlugin ( $ this , $ output ) ; }
Perform whichever task the Plugin should perform based
on the payload's data.

@param Payload $payload
@return void
Perform whichever task the Plugin should perform based on the payload s data .