Skip to content

Commit

Permalink
Not only the 'master' prefix but also the 'main' prefix is now stripp…
Browse files Browse the repository at this point in the history
…ed when deriving the version identifier
  • Loading branch information
alexanderpann committed Sep 10, 2024
1 parent 896925d commit e070f8a
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ class GitBasedVersioning {
static String getVersion(String branch, String major, String minor, String bugfix = "", int count) {
def hash = getGitShortCommitHash()
def baseVersion = bugfix.isEmpty() ? "$major.$minor.$count.$hash" : "$major.$minor.$bugfix.$count.$hash"
if (branch == 'master' || branch == 'HEAD' /*this happens in detached head situations*/) {
if (branch == 'master' || branch == 'main' || branch == 'HEAD' /*this happens in detached head situations*/) {
return baseVersion
}

Expand Down

0 comments on commit e070f8a

Please sign in to comment.