Explorar o código

test gitlab-ci

Espinoza Guillermo %!s(int64=6) %!d(string=hai) anos
pai
achega
aeb2a6aa7f
Modificáronse 1 ficheiros con 5 adicións e 1 borrados
  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();