Browse Source

test gitlab-ci

Espinoza Guillermo 6 years ago
parent
commit
aeb2a6aa7f
1 changed files with 5 additions and 1 deletions
  1. 5 1
      tools/src/Command/TagVendorsCommand.php

+ 5 - 1
tools/src/Command/TagVendorsCommand.php

@@ -79,9 +79,13 @@ class TagVendorsCommand extends Command
                         // si no existe el branch y estoy creando un branch nuevo
                         $git->branch->create($version);
                         $cmd .= "$version ";
+                        $findBranch = true;
                     }
 
-                    $git->checkout($version);
+                    if ($findBranch) {
+                        $git->checkout($version);
+                    }
+                    
                     if (!$optionBranch) {
                         // estoy creando un tag
                         $tags = $git->tag();