Allowing to specify different branch in first parameter

This commit is contained in:
David Vennik
2022-12-21 14:55:59 +00:00
parent c242b8f234
commit dc8086b29a
2 changed files with 6 additions and 5 deletions

View File

@@ -151,10 +151,11 @@ func main() {
break break
} }
} }
log.I.S(isBranch, branch) log.I.S(isBranch, branch, branchParam)
if isBranch { if isBranch {
branch = branchParam branch = branchParam
} }
log.I.S(branch)
if isBranch { if isBranch {
startArgs++ startArgs++
} }

View File

@@ -13,11 +13,11 @@ var (
// GitRef is the gitref, as in refs/heads/branchname. // GitRef is the gitref, as in refs/heads/branchname.
GitRef = "refs/heads/main" GitRef = "refs/heads/main"
// ParentGitCommit is the commit hash of the parent HEAD. // ParentGitCommit is the commit hash of the parent HEAD.
ParentGitCommit = "5c72c2dabc3e5af39689ee4c9e0d0057c31de54c" ParentGitCommit = "5e6c6fa0365dfb494c0a8e9c99d557cd7eb331df"
// BuildTime stores the time when the current binary was built. // BuildTime stores the time when the current binary was built.
BuildTime = "2022-12-21T14:50:51Z" BuildTime = "2022-12-21T14:55:59Z"
// SemVer lists the (latest) git tag on the build. // SemVer lists the (latest) git tag on the build.
SemVer = "v0.0.208" SemVer = "v0.0.209"
// PathBase is the path base returned from runtime caller. // PathBase is the path base returned from runtime caller.
PathBase = "/home/loki/src/github.com/Indra-Labs/indra/" PathBase = "/home/loki/src/github.com/Indra-Labs/indra/"
// Major is the major number from the tag. // Major is the major number from the tag.
@@ -25,7 +25,7 @@ var (
// Minor is the minor number from the tag. // Minor is the minor number from the tag.
Minor = 0 Minor = 0
// Patch is the patch version number from the tag. // Patch is the patch version number from the tag.
Patch = 208 Patch = 209
) )
// Version returns a pretty printed version information string. // Version returns a pretty printed version information string.