Allowing to specify different branch in first parameter

This commit is contained in:
David Vennik
2022-12-21 14:21:04 +00:00
parent 46034e4d02
commit 7f87e7b4a7
2 changed files with 5 additions and 5 deletions

View File

@@ -228,6 +228,7 @@ func Version() string {
continue
}
if splitted[i][2:] == branch {
log.I.S(splitted[i][2:])
isBranch = true
branch = splitted[i][2:]
break
@@ -248,7 +249,6 @@ func Version() string {
if e = runCmd("git", "tag", SemVer); check(e) {
os.Exit(1)
}
log.I.Ln(branch)
if e = runCmd("git", "push", "origin", branch); check(e) {
os.Exit(1)
}