Source
49
49
my $delim="\\.";
50
50
return get_last_tag($gitbranch,$branchpattern,$delim)
51
51
}
52
52
53
53
sub get_last_tag () {
54
54
my $gitbranch = shift;
55
55
my $branchpattern = shift;
56
56
my $delim = shift;
57
57
my @versions;
58
58
my @tags;
59
-
open( $githashes, "git log --since 2019-10-01 --simplify-by-decoration --pretty='%H' ".$gitbranch." |" );
59
+
open( $githashes, "git log --since='Jan 30, 2022' --simplify-by-decoration --pretty='%H' ".$gitbranch." |" );
60
60
chomp( @hashes = <$githashes> );
61
61
close( $githashes );
62
62
foreach ( @hashes ) {
63
63
#print "$_\n";
64
64
# This distinction was added in case there are multiple release tags. I am not certain that
65
65
# this is going to happen in practice.
66
66
if ($gitbranch =~ "release/"){
67
67
$releaseid=(split('/',$gitbranch))[-1];
68
68
$grep_cmd = "git tag -l | grep \"" . "^" .$releaseid . "\" | ";
69
69
open( $gitver, "git show-ref --tags -d | grep ^" . $_ . " | sed -e 's,.* refs/tags/,,' | grep " .$releaseid ." |sed -e 's/\\^{}//' 2> /dev/null |" );