Allowing to specify different branch in first parameter

This commit is contained in:
David Vennik
2022-12-21 14:41:05 +00:00
parent 09b75dfbb5
commit 7d05f18e93
2 changed files with 3 additions and 3 deletions

View File

@@ -147,6 +147,7 @@ func main() {
}
if splitted[i][2:] == branch {
isBranch = true
branch = splitted[i][2:]
break
}
}
@@ -248,7 +249,6 @@ func Version() string {
if e = runCmd("git", "commit", "-m"+commitString); check(e) {
os.Exit(1)
}
panic(tag)
if tag {
if e = runCmd("git", "tag", SemVer); check(e) {
os.Exit(1)