mirror of
				https://github.com/hauke68/Magallanes.git
				synced 2025-11-04 09:00:18 +01:00 
			
		
		
		
	Merge pull request #59 from juanda/master
strategy git-rebase is enabled
This commit is contained in:
		
						commit
						db6d0d4989
					
				@ -310,7 +310,11 @@ class DeployCommand extends AbstractCommand implements RequiresEnvironment
 | 
			
		||||
    			    case 'targz':
 | 
			
		||||
    			    	$deployStrategy = 'deployment/strategy/tar-gz';
 | 
			
		||||
    			    	break;
 | 
			
		||||
 | 
			
		||||
                            
 | 
			
		||||
                            case 'git-rebase':
 | 
			
		||||
    			    	$deployStrategy = 'deployment/strategy/git-rebase';
 | 
			
		||||
    			    	break;
 | 
			
		||||
                            
 | 
			
		||||
    			    case 'guess':
 | 
			
		||||
    			    default:
 | 
			
		||||
    			    	if ($this->getConfig()->release('enabled', false) == true) {
 | 
			
		||||
 | 
			
		||||
@ -34,13 +34,13 @@ class GitRebaseTask extends AbstractTask implements IsReleaseAware
 | 
			
		||||
     * @see \Mage\Task\AbstractTask::run()
 | 
			
		||||
     */
 | 
			
		||||
    public function run()
 | 
			
		||||
    {
 | 
			
		||||
    	$branch = $this->getParameter('branch');
 | 
			
		||||
    	$remote = $this->getParameter('remote');
 | 
			
		||||
 | 
			
		||||
    {        
 | 
			
		||||
    	$branch = $this->getParameter('branch', 'master');
 | 
			
		||||
    	$remote = $this->getParameter('remote', 'origin');
 | 
			
		||||
                
 | 
			
		||||
    	// Fetch Remote
 | 
			
		||||
        $command = 'git fetch ' . $remote;
 | 
			
		||||
        $result = $this->runCommandRemote($command) && $result;
 | 
			
		||||
        $result = $this->runCommandRemote($command);
 | 
			
		||||
 | 
			
		||||
        // Checkout
 | 
			
		||||
        $command = 'git checkout ' . $branch;
 | 
			
		||||
 | 
			
		||||
		Loading…
	
		Reference in New Issue
	
	Block a user