mirror of
				https://github.com/hauke68/Magallanes.git
				synced 2025-11-04 00:50:18 +01:00 
			
		
		
		
	Issue #99
This commit is contained in:
		
							parent
							
								
									eb9427d322
								
							
						
					
					
						commit
						6196cda70b
					
				@ -526,8 +526,7 @@ class Config
 | 
				
			|||||||
     */
 | 
					     */
 | 
				
			||||||
    public function setFrom($from)
 | 
					    public function setFrom($from)
 | 
				
			||||||
    {
 | 
					    {
 | 
				
			||||||
        $envConfig = $this->getEnvironmentConfig();
 | 
					        $this->environmentConfig['deployment']['from'] = $from;
 | 
				
			||||||
        $envConfig['deployment']['from'] = $from;
 | 
					 | 
				
			||||||
        return $this;
 | 
					        return $this;
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
				
			|||||||
@ -66,12 +66,12 @@ class CloneTask extends AbstractTask
 | 
				
			|||||||
            case 'git':
 | 
					            case 'git':
 | 
				
			||||||
                // Clone Repo
 | 
					                // Clone Repo
 | 
				
			||||||
                $command = 'cd ' . $this->source['temporal'] . ' ; '
 | 
					                $command = 'cd ' . $this->source['temporal'] . ' ; '
 | 
				
			||||||
                    . 'git clone ' . $this->source['repository'] . ' . ';
 | 
					                         . 'git clone ' . $this->source['repository'] . ' . ';
 | 
				
			||||||
                $result = $this->runCommandLocal($command);
 | 
					                $result = $this->runCommandLocal($command);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
                // Checkout Branch
 | 
					                // Checkout Branch
 | 
				
			||||||
                $command = 'cd ' . $this->source['temporal'] . ' ; '
 | 
					                $command = 'cd ' . $this->source['temporal'] . ' ; '
 | 
				
			||||||
                    . 'git checkout ' . $this->source['from'];
 | 
					                         . 'git checkout ' . $this->source['from'];
 | 
				
			||||||
                $result = $result && $this->runCommandLocal($command);
 | 
					                $result = $result && $this->runCommandLocal($command);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
                $this->getConfig()->setFrom($this->source['temporal']);
 | 
					                $this->getConfig()->setFrom($this->source['temporal']);
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
		Reference in New Issue
	
	Block a user