bluto

Release package and announcement generator
Info | Log | Files | Refs | README | LICENSE

commit 758956f7aa2f903633d22c2a26d4f5db3f048ce0
parent 736daf0d1d7759605656d1d179351f3d8949b0b8
Author: lash <dev@holbrook.no>
Date:   Sun, 29 Sep 2024 03:09:11 +0100

Correct build revision in file name targz

Diffstat:
MBluto.pm | 1-
MBluto/Archive.pm | 3++-
2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/Bluto.pm b/Bluto.pm @@ -218,7 +218,6 @@ sub from_config { if (defined $cfg->param('vcs.tag_prefix')) { $m_main{tag_prefix} = $cfg->param('vcs.tag_prefix'); - } foreach my $v ( $cfg->param('locate.www') ) { diff --git a/Bluto/Archive.pm b/Bluto/Archive.pm @@ -62,7 +62,8 @@ sub create { my $targz_local = undef; my $targz_stem = $release->{slug} . '-' . $release->{version}; - my $rev = `git rev-parse HEAD --abbrev-ref`; + my $rev_version = $release->{tag_prefix} . $release->{version}; + my $rev = `git rev-parse $rev_version --abbrev-ref`; if (!defined $rev) { error('unable to determine revision'); chdir($old_dir);