Skip to content

Commit

Permalink
Feat: Adicionado comando fetch tags
Browse files Browse the repository at this point in the history
  • Loading branch information
ggfto committed Sep 30, 2024
1 parent a5aa099 commit 7ccb2a9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions generate_release.bat
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
@echo off
setlocal enabledelayedexpansion

git fetch --all --tags

:: Função para encontrar a branch principal automaticamente (main ou master)
set "main_branch="
call :get_main_branch
Expand Down
2 changes: 2 additions & 0 deletions generate_release.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
#!/bin/bash

git fetch --all --tags

# Função para encontrar a branch principal automaticamente (main ou master)
get_main_branch() {
main_branch=$(git symbolic-ref refs/remotes/origin/HEAD 2>/dev/null | sed 's@^refs/remotes/origin/@@')
Expand Down

0 comments on commit 7ccb2a9

Please sign in to comment.