mirror of
				https://github.com/hauke68/Magallanes.git
				synced 2025-11-04 09:00:18 +01:00 
			
		
		
		
	strategy git-rebase is enabled
This commit is contained in:
		
							parent
							
								
									23b59869ec
								
							
						
					
					
						commit
						86ef278607
					
				@ -311,6 +311,10 @@ class DeployCommand extends AbstractCommand implements RequiresEnvironment
 | 
				
			|||||||
    			    	$deployStrategy = 'deployment/strategy/tar-gz';
 | 
					    			    	$deployStrategy = 'deployment/strategy/tar-gz';
 | 
				
			||||||
    			    	break;
 | 
					    			    	break;
 | 
				
			||||||
                            
 | 
					                            
 | 
				
			||||||
 | 
					                            case 'git-rebase':
 | 
				
			||||||
 | 
					    			    	$deployStrategy = 'deployment/strategy/git-rebase';
 | 
				
			||||||
 | 
					    			    	break;
 | 
				
			||||||
 | 
					                            
 | 
				
			||||||
    			    case 'guess':
 | 
					    			    case 'guess':
 | 
				
			||||||
    			    default:
 | 
					    			    default:
 | 
				
			||||||
    			    	if ($this->getConfig()->release('enabled', false) == true) {
 | 
					    			    	if ($this->getConfig()->release('enabled', false) == true) {
 | 
				
			||||||
 | 
				
			|||||||
@ -35,12 +35,12 @@ class GitRebaseTask extends AbstractTask implements IsReleaseAware
 | 
				
			|||||||
     */
 | 
					     */
 | 
				
			||||||
    public function run()
 | 
					    public function run()
 | 
				
			||||||
    {        
 | 
					    {        
 | 
				
			||||||
    	$branch = $this->getParameter('branch');
 | 
					    	$branch = $this->getParameter('branch', 'master');
 | 
				
			||||||
    	$remote = $this->getParameter('remote');
 | 
					    	$remote = $this->getParameter('remote', 'origin');
 | 
				
			||||||
                
 | 
					                
 | 
				
			||||||
    	// Fetch Remote
 | 
					    	// Fetch Remote
 | 
				
			||||||
        $command = 'git fetch ' . $remote;
 | 
					        $command = 'git fetch ' . $remote;
 | 
				
			||||||
        $result = $this->runCommandRemote($command) && $result;
 | 
					        $result = $this->runCommandRemote($command);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        // Checkout
 | 
					        // Checkout
 | 
				
			||||||
        $command = 'git checkout ' . $branch;
 | 
					        $command = 'git checkout ' . $branch;
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
		Reference in New Issue
	
	Block a user