You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
returnnil, errors.WithMessage(err, "Error while trying to find latest release version tag")
42
41
}
43
42
44
-
iflatestReleaseVersionTag!=nil {
45
-
iferr=git_utils.AssertRefIsReachable(repo, latestReleaseVersionTag, headRef, "Latest tag is not on HEAD. This is necessary as the next version is calculated based on the commits since the latest version tag."); err!=nil {
46
-
returnnil, err
47
-
}
48
-
}
43
+
// Removed the ancestry check here
44
+
// if latestReleaseVersionTag != nil {
45
+
// if err = git_utils.AssertRefIsReachable(repo, latestReleaseVersionTag, headRef, "Latest tag is not on HEAD. This is necessary as the next version is calculated based on the commits since the latest version tag."); err != nil {
iferr=git_utils.AssertRefIsReachable(repo, latestPreReleaseVersionTag, headRef, "Latest tag is not on HEAD. This is necessary as the next version is calculated based on the commits since the latest version tag."); err!=nil {
67
-
returnnil, err
68
-
}
66
+
// Removed the ancestry check here
67
+
// if err = git_utils.AssertRefIsReachable(repo, latestPreReleaseVersionTag, headRef, "Latest tag is not on HEAD. This is necessary as the next version is calculated based on the commits since the latest version tag."); err != nil {
0 commit comments